From dda14faac5242af4940dd012f32f9cfbea0738f2 Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 23 Dec 2004 21:58:01 +0000 Subject: (svn r1265) -Fix: the server can also no longer use the money cheat if the advertise-mode is active --- ttd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ttd.c') 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(); -- cgit v1.2.3-54-g00ecf