From: Holger Z. <hz...@us...> - 2004-07-23 10:07:26
|
Update of /cvsroot/jake2/jake2/src/jake2/game In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10900/src/jake2/game Modified Files: M_Flyer.java Cmd.java GameSpawn.java Log Message: replace Lib functions Index: M_Flyer.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/game/M_Flyer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** M_Flyer.java 8 Jul 2004 15:58:44 -0000 1.2 --- M_Flyer.java 23 Jul 2004 10:07:14 -0000 1.3 *************** *** 24,29 **** package jake2.game; ! import jake2.util.*; ! import jake2.util.*; public class M_Flyer extends M_Player { --- 24,29 ---- package jake2.game; ! import jake2.util.Lib; ! import jake2.util.Math3D; public class M_Flyer extends M_Player { *************** *** 761,765 **** // fix a map bug in jail5.bsp ! if (0 == Lib.stricmp(level.mapname, "jail5") && (self.s.origin[2] == -104)) { self.targetname= self.target; self.target= null; --- 761,765 ---- // fix a map bug in jail5.bsp ! if (level.mapname.equalsIgnoreCase("jail5") && (self.s.origin[2] == -104)) { self.targetname= self.target; self.target= null; Index: GameSpawn.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/game/GameSpawn.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** GameSpawn.java 9 Jul 2004 06:50:49 -0000 1.3 --- GameSpawn.java 23 Jul 2004 10:07:14 -0000 1.4 *************** *** 24,30 **** package jake2.game; ! import jake2.Defines; ! import jake2.util.*; ! import jake2.qcommon.*; public class GameSpawn extends GameSave { --- 24,29 ---- package jake2.game; ! import jake2.qcommon.Com; ! import jake2.util.Lib; public class GameSpawn extends GameSave { *************** *** 596,600 **** if (item.classname == null) continue; ! if (0 == Lib.stricmp(item.classname, ent.classname)) { // found it SpawnItem(ent, item); return; --- 595,599 ---- if (item.classname == null) continue; ! if (item.classname.equalsIgnoreCase(ent.classname)) { // found it SpawnItem(ent, item); return; *************** *** 603,607 **** for (i=0; (s = spawns[i]) !=null && s.name != null; i++) { ! if (0 == Lib.stricmp(s.name, ent.classname)) { // found it if (s.spawn == null) --- 602,606 ---- for (i=0; (s = spawns[i]) !=null && s.name != null; i++) { ! if (s.name.equalsIgnoreCase(ent.classname)) { // found it if (s.spawn == null) Index: Cmd.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/game/Cmd.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Cmd.java 9 Jul 2004 06:50:49 -0000 1.3 --- Cmd.java 23 Jul 2004 10:07:14 -0000 1.4 *************** *** 396,400 **** for (cmd= cmd_functions; cmd != null; cmd= cmd.next) { ! if (0 == strcmp(cmd_name, cmd.name)) return true; } --- 396,400 ---- for (cmd= cmd_functions; cmd != null; cmd= cmd.next) { ! if (cmd.name.equals(cmd_name)) return true; } *************** *** 1198,1204 **** if (arg0) { ! strcat(text, gi.argv(0)); ! strcat(text, " "); ! strcat(text, gi.args()); } else --- 1198,1204 ---- if (arg0) { ! text += gi.argv(0); ! text += " "; ! text += gi.args(); } else *************** *** 1225,1229 **** text= text.substring(0, 150); ! strcat(text, "\n"); if (flood_msgs.value != 0) --- 1225,1229 ---- text= text.substring(0, 150); ! text += "\n"; if (flood_msgs.value != 0) |