Update of /cvsroot/jake2/jake2/src/jake2/game
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13917/src/jake2/game
Modified Files:
Cmd.java
Log Message:
scoreboard bug fixed
Index: Cmd.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/game/Cmd.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** Cmd.java 23 Jan 2005 20:04:02 -0000 1.10
--- Cmd.java 6 Feb 2005 18:53:50 -0000 1.11
***************
*** 28,31 ****
--- 28,32 ----
import jake2.Defines;
import jake2.Globals;
+ import jake2.game.monsters.M_Player;
import jake2.qcommon.*;
import jake2.server.SV_GAME;
***************
*** 380,385 ****
* ============ Cmd_ExecuteString
*
! * A complete command line has been parsed, so try to execute it FIXME:
! * lookupnoadd the token to speed search? ============
*/
public static void ExecuteString(String text) {
--- 381,386 ----
* ============ Cmd_ExecuteString
*
! * A complete command line has been parsed, so try to execute it
! * FIXME: lookupnoadd the token to speed search?
*/
public static void ExecuteString(String text) {
***************
*** 660,664 ****
--- 661,667 ----
s = Cmd.Args();
+
it = GameUtil.FindItem(s);
+ Com.dprintln("using:" + s);
if (it == null) {
SV_GAME.PF_cprintf(ent, Defines.PRINT_HIGH, "unknown item: " + s
***************
*** 667,672 ****
}
if (it.use == null) {
! SV_GAME
! .PF_cprintf(ent, Defines.PRINT_HIGH,
"Item is not usable.\n");
return;
--- 670,674 ----
}
if (it.use == null) {
! SV_GAME.PF_cprintf(ent, Defines.PRINT_HIGH,
"Item is not usable.\n");
return;
***************
*** 897,901 ****
ent.client.showscores = true;
! GameAI.DeathmatchScoreboard(ent);
}
--- 899,903 ----
ent.client.showscores = true;
! PlayerHud.DeathmatchScoreboard(ent);
}
***************
*** 947,951 ****
ent.client.showhelp = false;
ent.client.showinventory = false;
-
}
--- 949,952 ----
|