From 4248a6386fd21c0016a2aa9f80e38af1508874c9 Mon Sep 17 00:00:00 2001 From: Rene Stoeckel Date: Sat, 19 Feb 2005 11:12:42 +0000 Subject: command line parameter bugs. --- src/jake2/qcommon/Cbuf.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/jake2') diff --git a/src/jake2/qcommon/Cbuf.java b/src/jake2/qcommon/Cbuf.java index ac36c68..593c058 100644 --- a/src/jake2/qcommon/Cbuf.java +++ b/src/jake2/qcommon/Cbuf.java @@ -2,7 +2,7 @@ * Cbuf.java * Copyright (C) 2003 * - * $Id: Cbuf.java,v 1.6 2005-01-17 21:54:38 cawe Exp $ + * $Id: Cbuf.java,v 1.7 2005-02-19 11:12:42 salomo Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -116,11 +116,9 @@ public final class Cbuf { if (text.charAt(i) == '+') { i++; - for (j = i; (text.charAt(j) != '+') && (text.charAt(j) != '-') - && j < text.length(); j++) - ; + for (j = i; j < text.length() && (text.charAt(j) != '+') && (text.charAt(j) != '-'); j++); - build += text.substring(i, j - 1); + build += text.substring(i, j); build += "\n"; i = j - 1; -- cgit v1.2.3