summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-23 21:58:01 +0000
committertruelight <truelight@openttd.org>2004-12-23 21:58:01 +0000
commitc19b04efe84baf1146246ee062c0f0c3a93aed36 (patch)
tree395edbcc7bfb2fcb6d33557f5c23f69636684eb2 /ttd.c
parentff6404c14b388abe1d280a711150f54b0c3a2cb2 (diff)
downloadopenttd-c19b04efe84baf1146246ee062c0f0c3a93aed36.tar.xz
(svn r1265) -Fix: the server can also no longer use the money cheat if the
advertise-mode is active
Diffstat (limited to 'ttd.c')
-rw-r--r--ttd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ttd.c b/ttd.c
index 6a676495a..728b68565 100644
--- a/ttd.c
+++ b/ttd.c
@@ -1303,7 +1303,9 @@ void DebugProc(int i)
*(byte*)0 = 0;
break;
case 1:
- DoCommandP(0, -10000000, 0, NULL, CMD_MONEY_CHEAT);
+ /* Server can not cheat in advertise mode either! */
+ if (!_networking || !_network_server || !_network_advertise)
+ DoCommandP(0, -10000000, 0, NULL, CMD_MONEY_CHEAT);
break;
case 2:
UpdateAllStationVirtCoord();