diff options
author | Carsten Weisse <[email protected]> | 2004-10-21 03:32:53 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2004-10-21 03:32:53 +0000 |
commit | 3ab5b09873864ef092288f53d63534318bdb6ccc (patch) | |
tree | 8c50505b45b52ef0630e95a4be61ec757b4d40a1 /src | |
parent | 2a80102c15005794b7738ca882baf7d6c64eca73 (diff) |
i think it is clearer
Diffstat (limited to 'src')
-rw-r--r-- | src/jake2/game/Info.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/jake2/game/Info.java b/src/jake2/game/Info.java index f7d8b8d..7bb7c99 100644 --- a/src/jake2/game/Info.java +++ b/src/jake2/game/Info.java @@ -19,7 +19,7 @@ */ // Created on 27.12.2003 by RST. -// $Id: Info.java,v 1.4 2004-09-22 19:22:03 salomo Exp $ +// $Id: Info.java,v 1.5 2004-10-21 03:32:53 cawe Exp $ package jake2.game; import jake2.Defines; @@ -147,11 +147,7 @@ public class Info { * server's parsing ================== */ public static boolean Info_Validate(String s) { - if (s.indexOf('"') != -1) - //return false; - if (s.indexOf(';') != -1) - return false; - return true; + return !((s.indexOf('"') != -1) || (s.indexOf(';') != -1)); } private static String fillspaces = " "; |