forked from mirror/OpenTTD
(svn r2276) - CodeChange: remove DebugProc() and make the ALT+0...4 codes only available in debug mode
This commit is contained in:
19
ttd.c
19
ttd.c
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user