diff options
author | Holger Zickner <[email protected]> | 2004-10-07 14:13:07 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2004-10-07 14:13:07 +0000 |
commit | 5a89f0f1e1bc7abd8e75b02fb26fb93f39006e96 (patch) | |
tree | 7b74a0f5c7c04eceb23acb24fdbeacb958dfbc59 /src/jake2/server | |
parent | 8ad645f69e8aea3d8a8a4b601e3f940165ad9041 (diff) |
remove some unreferenced functions
Diffstat (limited to 'src/jake2/server')
-rw-r--r-- | src/jake2/server/SV_CCMDS.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jake2/server/SV_CCMDS.java b/src/jake2/server/SV_CCMDS.java index 38e296e..18a7f91 100644 --- a/src/jake2/server/SV_CCMDS.java +++ b/src/jake2/server/SV_CCMDS.java @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 18.01.2004 by RST. -// $Id: SV_CCMDS.java,v 1.12 2004-09-22 19:22:12 salomo Exp $ +// $Id: SV_CCMDS.java,v 1.13 2004-10-07 14:13:07 hzi Exp $ package jake2.server; @@ -655,7 +655,7 @@ public class SV_CCMDS { Com.Printf("Loading game...\n"); dir = Cmd.Argv(1); - if (Lib.strstr(dir, "..") || Lib.strstr(dir, "/") || Lib.strstr(dir, "\\")) { + if ( (dir.indexOf("..") > -1) || (dir.indexOf("/") > -1) || (dir.indexOf("\\") > -1)) { Com.Printf("Bad savedir.\n"); } @@ -718,10 +718,10 @@ public class SV_CCMDS { } dir = Cmd.Argv(1); - if (Lib.strstr(dir, "..") || Lib.strstr(dir, "/") || Lib.strstr(dir, "\\")) { + if ( (dir.indexOf("..") > -1) || (dir.indexOf("/") > -1) || (dir.indexOf("\\") > -1)) { Com.Printf("Bad savedir.\n"); } - + Com.Printf("Saving game...\n"); // archive current level, including all client edicts. |