(svn r2276) - CodeChange: remove DebugProc() and make the ALT+0...4 codes only available in debug mode

This commit is contained in:
Darkvater
2005-05-06 20:38:18 +00:00
parent 18bc5ae77e
commit 81474c2623
2 changed files with 22 additions and 37 deletions

19
ttd.c
View File

@@ -1413,22 +1413,3 @@ bool AfterLoadGame(uint version)
return true;
}
void DebugProc(int i)
{
switch(i) {
case 0:
*(byte*)0 = 0;
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:
UpdateAllStationVirtCoord();
break;
}
}