aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/qcommon/Cbuf.java
diff options
context:
space:
mode:
authorRene Stoeckel <[email protected]>2005-02-19 11:12:42 +0000
committerRene Stoeckel <[email protected]>2005-02-19 11:12:42 +0000
commit4248a6386fd21c0016a2aa9f80e38af1508874c9 (patch)
treed3addaa8829a73637262dcfc9c1e1e3bb05b6972 /src/jake2/qcommon/Cbuf.java
parent0ebd6b59eec8656be4d73baf19a90d48701d525c (diff)
command line parameter bugs.
Diffstat (limited to 'src/jake2/qcommon/Cbuf.java')
-rw-r--r--src/jake2/qcommon/Cbuf.java8
1 files changed, 3 insertions, 5 deletions
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;