diff options
author | Holger Zickner <[email protected]> | 2004-07-23 10:09:55 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2004-07-23 10:09:55 +0000 |
commit | a161d9817f1a86aedffb8789e2134c6a29e5fa35 (patch) | |
tree | 9d5298865c5a7781c099a0f3fca94c2205476610 /src/jake2/game | |
parent | 4d14584117e56e51ea4fd69de1807a0e3329e7dc (diff) |
replace Lib functions
Diffstat (limited to 'src/jake2/game')
-rw-r--r-- | src/jake2/game/Cmd.java | 12 | ||||
-rw-r--r-- | src/jake2/game/GameSpawn.java | 11 | ||||
-rw-r--r-- | src/jake2/game/M_Flyer.java | 8 |
3 files changed, 15 insertions, 16 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) { diff --git a/src/jake2/game/GameSpawn.java b/src/jake2/game/GameSpawn.java index 34412fd..7dc4934 100644 --- a/src/jake2/game/GameSpawn.java +++ b/src/jake2/game/GameSpawn.java @@ -19,13 +19,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 18.11.2003 by RST. -// $Id: GameSpawn.java,v 1.3 2004-07-09 06:50:49 hzi Exp $ +// $Id: GameSpawn.java,v 1.4 2004-07-23 10:07:14 hzi Exp $ package jake2.game; -import jake2.Defines; -import jake2.util.*; -import jake2.qcommon.*; +import jake2.qcommon.Com; +import jake2.util.Lib; public class GameSpawn extends GameSave { @@ -595,14 +594,14 @@ public class GameSpawn extends GameSave { if (item.classname == null) continue; - if (0 == Lib.stricmp(item.classname, ent.classname)) { // found it + if (item.classname.equalsIgnoreCase(ent.classname)) { // found it SpawnItem(ent, item); return; } } // check normal spawn functions for (i=0; (s = spawns[i]) !=null && s.name != null; i++) { - if (0 == Lib.stricmp(s.name, ent.classname)) { // found it + if (s.name.equalsIgnoreCase(ent.classname)) { // found it if (s.spawn == null) gi.error("ED_CallSpawn: null-spawn on index=" + i); diff --git a/src/jake2/game/M_Flyer.java b/src/jake2/game/M_Flyer.java index 7cfc66b..09b629a 100644 --- a/src/jake2/game/M_Flyer.java +++ b/src/jake2/game/M_Flyer.java @@ -19,12 +19,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 13.11.2003 by RST. -// $Id: M_Flyer.java,v 1.2 2004-07-08 15:58:44 hzi Exp $ +// $Id: M_Flyer.java,v 1.3 2004-07-23 10:07:14 hzi Exp $ package jake2.game; -import jake2.util.*; -import jake2.util.*; +import jake2.util.Lib; +import jake2.util.Math3D; public class M_Flyer extends M_Player { // This file generated by ModelGen - Do NOT Modify @@ -760,7 +760,7 @@ public class M_Flyer extends M_Player { } // fix a map bug in jail5.bsp - if (0 == Lib.stricmp(level.mapname, "jail5") && (self.s.origin[2] == -104)) { + if (level.mapname.equalsIgnoreCase("jail5") && (self.s.origin[2] == -104)) { self.targetname= self.target; self.target= null; } |