mirror of https://github.com/OpenTTD/OpenTTD
(svn r22028) -Cleanup: remove traces of a debugging "feature" that got disabled a long time ago
parent
0c873d2bc6
commit
5286de116b
|
@ -331,11 +331,8 @@ struct MainWindow : Window
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GHK_MONEY: // Gimme money
|
case GHK_MONEY: // Gimme money
|
||||||
/* Server can not cheat in advertise mode either! */
|
/* You can only cheat for money in single player. */
|
||||||
#ifdef ENABLE_NETWORK
|
if (!_networking) DoCommandP(0, 10000000, 0, CMD_MONEY_CHEAT);
|
||||||
if (!_networking || !_network_server || !_settings_client.network.server_advertise)
|
|
||||||
#endif /* ENABLE_NETWORK */
|
|
||||||
DoCommandP(0, 10000000, 0, CMD_MONEY_CHEAT);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GHK_UPDATE_COORDS: // Update the coordinates of all station signs
|
case GHK_UPDATE_COORDS: // Update the coordinates of all station signs
|
||||||
|
|
|
@ -190,8 +190,6 @@ CommandCost CmdPause(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change the financial flow of your company.
|
* Change the financial flow of your company.
|
||||||
* This is normally only enabled in offline mode, but if there is a debug
|
|
||||||
* build, you can cheat (to test).
|
|
||||||
* @param tile unused
|
* @param tile unused
|
||||||
* @param flags operation to perform
|
* @param flags operation to perform
|
||||||
* @param p1 the amount of money to receive (if negative), or spend (if positive)
|
* @param p1 the amount of money to receive (if negative), or spend (if positive)
|
||||||
|
@ -201,9 +199,6 @@ CommandCost CmdPause(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2,
|
||||||
*/
|
*/
|
||||||
CommandCost CmdMoneyCheat(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
|
CommandCost CmdMoneyCheat(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
|
||||||
{
|
{
|
||||||
#ifndef _DEBUG
|
|
||||||
if (_networking) return CMD_ERROR;
|
|
||||||
#endif
|
|
||||||
return CommandCost(EXPENSES_OTHER, -(int32)p1);
|
return CommandCost(EXPENSES_OTHER, -(int32)p1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue