From f14cc86aebd482ca41f9e3181c8176c4ab23d32a Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Sun, 23 Jan 2005 19:03:42 +0000 Subject: changes for the new Com.Parse method; the parser returns null at the end of token stream --- src/jake2/client/SCR.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/jake2/client/SCR.java') 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); -- cgit v1.2.3