aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/jake2/server')
-rw-r--r--src/jake2/server/SV_CCMDS.java4
-rw-r--r--src/jake2/server/SV_MAIN.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/jake2/server/SV_CCMDS.java b/src/jake2/server/SV_CCMDS.java
index f890cab..105e156 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.4 2004-07-14 15:34:24 cawe Exp $
+// $Id: SV_CCMDS.java,v 1.5 2004-07-23 10:09:01 hzi Exp $
package jake2.server;
@@ -652,7 +652,7 @@ public class SV_CCMDS extends SV_ENTS {
// if not a pcx, demo, or cinematic, check to make sure the level exists
map = Cmd.Argv(1);
- if (!strstr(map, ".")) {
+ if (map.indexOf(".") < 0) {
expanded = "maps/" + map + ".bsp";
if (FS.LoadFile(expanded) == null) {
Com.Printf("Can't find " + expanded + "\n");
diff --git a/src/jake2/server/SV_MAIN.java b/src/jake2/server/SV_MAIN.java
index 510decc..b3d5e9d 100644
--- a/src/jake2/server/SV_MAIN.java
+++ b/src/jake2/server/SV_MAIN.java
@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Created on 13.01.2004 by RST.
-// $Id: SV_MAIN.java,v 1.3 2004-07-09 06:50:49 hzi Exp $
+// $Id: SV_MAIN.java,v 1.4 2004-07-23 10:09:01 hzi Exp $
package jake2.server;
@@ -444,8 +444,8 @@ public class SV_MAIN extends SV_GAME {
remaining = "";
for (i = 2; i < Cmd.Argc(); i++) {
- strcat(remaining, Cmd.Argv(i));
- strcat(remaining, " ");
+ remaining += Cmd.Argv(i);
+ remaining += " ";
}
Cmd.ExecuteString(remaining);