From c19b04efe84baf1146246ee062c0f0c3a93aed36 Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 23 Dec 2004 21:58:01 +0000 Subject: [PATCH] (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(-) diff --git a/ttd.c b/ttd.c index 6a676495a5..728b685659 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();