aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2005-01-23 19:03:42 +0000
committerCarsten Weisse <[email protected]>2005-01-23 19:03:42 +0000
commitf14cc86aebd482ca41f9e3181c8176c4ab23d32a (patch)
treec35f5d2c6912c583eb526e54b5faea695cb69cab /src
parent5f1ffc653f984f80cf71360364ea6bb4974b43e1 (diff)
changes for the new Com.Parse method;
the parser returns null at the end of token stream
Diffstat (limited to 'src')
-rw-r--r--src/jake2/client/SCR.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jake2/client/SCR.java b/src/jake2/client/SCR.java
index f3c4033..729f9e6 100644
--- a/src/jake2/client/SCR.java
+++ b/src/jake2/client/SCR.java
@@ -2,7 +2,7 @@
* SCR.java
* Copyright (C) 2003
*
- * $Id: SCR.java,v 1.9 2005-01-16 16:55:52 cawe Exp $
+ * $Id: SCR.java,v 1.10 2005-01-23 19:03:42 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -896,8 +896,7 @@ public final class SCR extends Globals {
Com.ParseHelp ph = new Com.ParseHelp(s);
- while (!ph.isEof()) {
- token = Com.Parse(ph);
+ while ((token = Com.Parse(ph)) != null) {
if (token.equals("xl")) {
token = Com.Parse(ph);
x = Lib.atoi(token);