aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/game/Cmd.java
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-23 10:09:55 +0000
committerHolger Zickner <[email protected]>2004-07-23 10:09:55 +0000
commita161d9817f1a86aedffb8789e2134c6a29e5fa35 (patch)
tree9d5298865c5a7781c099a0f3fca94c2205476610 /src/jake2/game/Cmd.java
parent4d14584117e56e51ea4fd69de1807a0e3329e7dc (diff)
replace Lib functions
Diffstat (limited to 'src/jake2/game/Cmd.java')
-rw-r--r--src/jake2/game/Cmd.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/jake2/game/Cmd.java b/src/jake2/game/Cmd.java
index a5a0a50..22d35a5 100644
--- a/src/jake2/game/Cmd.java
+++ b/src/jake2/game/Cmd.java
@@ -2,7 +2,7 @@
* Cmd.java
* Copyright (C) 2003
*
- * $Id: Cmd.java,v 1.3 2004-07-09 06:50:49 hzi Exp $
+ * $Id: Cmd.java,v 1.4 2004-07-23 10:07:14 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -395,7 +395,7 @@ public final class Cmd extends PlayerView
for (cmd= cmd_functions; cmd != null; cmd= cmd.next)
{
- if (0 == strcmp(cmd_name, cmd.name))
+ if (cmd.name.equals(cmd_name))
return true;
}
@@ -1197,9 +1197,9 @@ public final class Cmd extends PlayerView
if (arg0)
{
- strcat(text, gi.argv(0));
- strcat(text, " ");
- strcat(text, gi.args());
+ text += gi.argv(0);
+ text += " ";
+ text += gi.args();
}
else
{
@@ -1224,7 +1224,7 @@ public final class Cmd extends PlayerView
//text[150] = 0;
text= text.substring(0, 150);
- strcat(text, "\n");
+ text += "\n";
if (flood_msgs.value != 0)
{