summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-24 00:13:32 +0000
committertruelight <truelight@openttd.org>2004-12-24 00:13:32 +0000
commit4ec9356ba281e3c6bc059323954e55a5b0c26fc1 (patch)
tree3ab890619e6a80274e9e32434031a04b7d60b18e
parentde597eb7d20df94ffe81bc3e746245aae307bdbd (diff)
downloadopenttd-4ec9356ba281e3c6bc059323954e55a5b0c26fc1.tar.xz
(svn r1272) -Fix: game compiles again with network disabled
-rw-r--r--ttd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ttd.c b/ttd.c
index 728b68565..dad32ce9d 100644
--- a/ttd.c
+++ b/ttd.c
@@ -1304,7 +1304,9 @@ void DebugProc(int i)
break;
case 1:
/* Server can not cheat in advertise mode either! */
+#ifdef ENABLE_NETWORK
if (!_networking || !_network_server || !_network_advertise)
+#endif /* ENABLE_NETWORK */
DoCommandP(0, -10000000, 0, NULL, CMD_MONEY_CHEAT);
break;
case 2: