diff options
author | Holger Zickner <[email protected]> | 2004-08-27 21:07:01 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2004-08-27 21:07:01 +0000 |
commit | e2ed5030c0b03bee29a7f413c1581732333397b8 (patch) | |
tree | b3e656478b2b68a8f8707a476c90fe5e755d3768 /src | |
parent | 609d48b41513fa442ca714c002b271cc18d1941c (diff) |
draw help screen
Diffstat (limited to 'src')
-rw-r--r-- | src/jake2/client/SCR.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jake2/client/SCR.java b/src/jake2/client/SCR.java index da19b29..f92adcc 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.6 2004-08-22 14:25:15 salomo Exp $ + * $Id: SCR.java,v 1.7 2004-08-27 21:07:01 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -785,9 +785,10 @@ public final class SCR extends Globals { for (int l= 0; l < string.length();) { // scan out one line of text from the string line= new StringBuffer(1024); - while (string.charAt(l) != '\n') + while (l < string.length() && string.charAt(l) != '\n') { line.append(string.charAt(l)); - l++; + l++; + } if (centerwidth != 0) x= margin + (centerwidth - line.length() * 8) / 2; @@ -1169,8 +1170,7 @@ public final class SCR extends Globals { static void DrawLayout() { if (cl.frame.playerstate.stats[STAT_LAYOUTS] != 0) - return; - SCR.ExecuteLayoutString(cl.layout); + SCR.ExecuteLayoutString(cl.layout); } // ======================================================= |