aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2
diff options
context:
space:
mode:
Diffstat (limited to 'src/jake2')
-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;