summaryrefslogtreecommitdiffstats
path: root/src/jake2/client/Menu.java
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-30 06:03:40 +0000
committerHolger Zickner <[email protected]>2004-07-30 06:03:40 +0000
commit0681b364734d9f4d6b08e89e41850e0d36891c02 (patch)
tree78c13611d6db0e14c279145e9814eeb351b470cd /src/jake2/client/Menu.java
parent9567b7d3f26a222a3d3210a398a3ea91235a914a (diff)
replace serverState functions
Diffstat (limited to 'src/jake2/client/Menu.java')
-rw-r--r--src/jake2/client/Menu.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jake2/client/Menu.java b/src/jake2/client/Menu.java
index c6c7606..6e451b9 100644
--- a/src/jake2/client/Menu.java
+++ b/src/jake2/client/Menu.java
@@ -2,7 +2,7 @@
* Menu.java
* Copyright (C) 2004
*
- * $Id: Menu.java,v 1.5 2004-07-23 10:02:49 hzi Exp $
+ * $Id: Menu.java,v 1.6 2004-07-30 06:03:40 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -158,7 +158,7 @@ public final class Menu extends Key {
static void PushMenu(xcommand_t draw, keyfunc_t key) { //, String(*key) (int k) ) {
int i;
- if (Cvar.VariableValue("maxclients") == 1 && Com.ServerState() != 0)
+ if (Cvar.VariableValue("maxclients") == 1 && Globals.server_state != 0)
Cvar.Set("paused", "1");
// if this menu is already present, drop back to that level
@@ -2475,7 +2475,7 @@ public final class Menu extends Key {
}
};
static void Menu_SaveGame_f() {
- if (0 == Com.ServerState())
+ if (0 == Globals.server_state)
return; // not playing a game
SaveGame_MenuInit();
@@ -2800,7 +2800,7 @@ public final class Menu extends Key {
}
if (spot != null) {
- if (Com.ServerState() != 0)
+ if (Globals.server_state != 0)
Cbuf.AddText("disconnect\n");
Cbuf.AddText("gamemap \"*" + startmap + "$" + spot + "\"\n");
}