diff options
author | truelight <truelight@openttd.org> | 2004-12-23 21:58:01 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-23 21:58:01 +0000 |
commit | dda14faac5242af4940dd012f32f9cfbea0738f2 (patch) | |
tree | 395edbcc7bfb2fcb6d33557f5c23f69636684eb2 | |
parent | 6788a614d170ad2921dc79b88d8b82edc8a2291a (diff) | |
download | openttd-dda14faac5242af4940dd012f32f9cfbea0738f2.tar.xz |
(svn r1265) -Fix: the server can also no longer use the money cheat if the
advertise-mode is active
-rw-r--r-- | ttd.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(); |