diff options
author | Carsten Weisse <[email protected]> | 2005-01-23 19:16:17 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2005-01-23 19:16:17 +0000 |
commit | 48a610b869b67b56c9450a2264165f614064fb55 (patch) | |
tree | 22da55ea81b507e93a74b0b866d6d0d082379ef9 /src/jake2/client/SCR.java | |
parent | 3b5636d7d2ea2023d4474bad39cb5b65ffa1ccb4 (diff) |
skip to endif changed
Diffstat (limited to 'src/jake2/client/SCR.java')
-rw-r--r-- | src/jake2/client/SCR.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/jake2/client/SCR.java b/src/jake2/client/SCR.java index 729f9e6..9e263a1 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.10 2005-01-23 19:03:42 cawe Exp $ + * $Id: SCR.java,v 1.11 2005-01-23 19:16:17 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -1125,18 +1125,10 @@ public final class SCR extends Globals { if (token.equals("if")) { // draw a number token = Com.Parse(ph); value = cl.frame.playerstate.stats[Lib.atoi(token)]; - if (value == 0) { // skip to endif - // while (s && strcmp(token, "endif") ) - // { - // token = Com.Parse(ph); - // } - - while (!ph.isEof() - && !(token = Com.Parse(ph)).equals("endif")) - ; - + if (value == 0) { + // skip to endif + while ((token = Com.Parse(ph)) != null && !token.equals("endif")); } - continue; } |