aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRene Stoeckel <[email protected]>2005-12-18 17:08:27 +0000
committerRene Stoeckel <[email protected]>2005-12-18 17:08:27 +0000
commitec9c92317d23ee1333c27eeb2c75728bfc08450f (patch)
tree195bb7d0629e26aa2a433db269e57b08c95657a6 /src
parent922f4822fdd99312c4118740015b425e835fa97f (diff)
cheat bugfix in God_f and Give_f
Diffstat (limited to 'src')
-rw-r--r--src/jake2/game/Cmd.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jake2/game/Cmd.java b/src/jake2/game/Cmd.java
index 7df0a96..7060fdd 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.16 2005-11-20 22:18:33 salomo Exp $
+ * $Id: Cmd.java,v 1.17 2005-12-18 17:08:27 salomo Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -478,7 +478,7 @@ public final class Cmd {
boolean give_all;
edict_t it_ent;
- if (GameBase.deathmatch.value == 0 && GameBase.sv_cheats.value == 0) {
+ if (GameBase.deathmatch.value != 0 && GameBase.sv_cheats.value == 0) {
SV_GAME
.PF_cprintf(ent, Defines.PRINT_HIGH,
"You must run the server with '+set cheats 1' to enable this command.\n");
@@ -613,7 +613,7 @@ public final class Cmd {
public static void God_f(edict_t ent) {
String msg;
- if (GameBase.deathmatch.value == 0 && GameBase.sv_cheats.value == 0) {
+ if (GameBase.deathmatch.value != 0 && GameBase.sv_cheats.value == 0) {
SV_GAME
.PF_cprintf(ent, Defines.PRINT_HIGH,
"You must run the server with '+set cheats 1' to enable this command.\n");