summaryrefslogtreecommitdiffstats
path: root/src/jake2
diff options
context:
space:
mode:
authorRene Stoeckel <[email protected]>2005-02-06 18:53:50 +0000
committerRene Stoeckel <[email protected]>2005-02-06 18:53:50 +0000
commitd73d85210364745aa5322476919ec31bbf8b6e1c (patch)
tree7fd6ef8df0a67522769fd30b28c7e3af0ab8e8bf /src/jake2
parentee3984075ee4549cce5c71c7552428fc04c37d1e (diff)
scoreboard bug fixed
Diffstat (limited to 'src/jake2')
-rw-r--r--src/jake2/game/Cmd.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/jake2/game/Cmd.java b/src/jake2/game/Cmd.java
index 621937e..f530063 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.10 2005-01-23 20:04:02 cawe Exp $
+ * $Id: Cmd.java,v 1.11 2005-02-06 18:53:50 salomo Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -27,6 +27,7 @@ package jake2.game;
import jake2.Defines;
import jake2.Globals;
+import jake2.game.monsters.M_Player;
import jake2.qcommon.*;
import jake2.server.SV_GAME;
import jake2.util.Lib;
@@ -379,8 +380,8 @@ public final class Cmd {
/*
* ============ Cmd_ExecuteString
*
- * A complete command line has been parsed, so try to execute it FIXME:
- * lookupnoadd the token to speed search? ============
+ * 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) {
@@ -659,15 +660,16 @@ public final class Cmd {
String s;
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
+ "\n");
return;
}
if (it.use == null) {
- SV_GAME
- .PF_cprintf(ent, Defines.PRINT_HIGH,
+ SV_GAME.PF_cprintf(ent, Defines.PRINT_HIGH,
"Item is not usable.\n");
return;
}
@@ -896,7 +898,7 @@ public final class Cmd {
}
ent.client.showscores = true;
- GameAI.DeathmatchScoreboard(ent);
+ PlayerHud.DeathmatchScoreboard(ent);
}
/*
@@ -946,7 +948,6 @@ public final class Cmd {
ent.client.showscores = false;
ent.client.showhelp = false;
ent.client.showinventory = false;
-
}
/*