Mercurial > hg > openttd
changeset 17276:6a57b4737132 draft
(svn r22016) -Fix [FS#4479]: when paused and having the allowed actions while paused setting on "no actions" cheating money would fail
author | rubidium <rubidium@openttd.org> |
---|---|
date | Mon, 07 Feb 2011 22:23:37 +0000 |
parents | 9efba2c3774d |
children | 5b204f51b151 |
files | src/command.cpp src/command_type.h |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/command.cpp +++ b/src/command.cpp @@ -272,7 +272,7 @@ DEF_CMD(CmdClearArea, CMD_NO_TEST, CMDT_LANDSCAPE_CONSTRUCTION), // CMD_CLEAR_AREA; destroying multi-tile houses makes town rating differ between test and execution - DEF_CMD(CmdMoneyCheat, CMD_OFFLINE, CMDT_MONEY_MANAGEMENT ), // CMD_MONEY_CHEAT + DEF_CMD(CmdMoneyCheat, CMD_OFFLINE, CMDT_CHEAT ), // CMD_MONEY_CHEAT DEF_CMD(CmdBuildCanal, CMD_AUTO, CMDT_LANDSCAPE_CONSTRUCTION), // CMD_BUILD_CANAL DEF_CMD(CmdCompanyCtrl, CMD_SPECTATOR | CMD_CLIENT_ID, CMDT_SERVER_SETTING ), // CMD_COMPANY_CTRL @@ -365,6 +365,7 @@ CMDPL_NO_CONSTRUCTION, ///< CMDT_OTHER_MANAGEMENT CMDPL_NO_CONSTRUCTION, ///< CMDT_COMPANY_SETTING CMDPL_NO_ACTIONS, ///< CMDT_SERVER_SETTING + CMDPL_NO_ACTIONS, ///< CMDT_CHEAT }; assert_compile(lengthof(command_type_lookup) == CMDT_END);
--- a/src/command_type.h +++ b/src/command_type.h @@ -343,6 +343,7 @@ CMDT_OTHER_MANAGEMENT, ///< Renaming stuff, changing company colours, placing signs, etc. CMDT_COMPANY_SETTING, ///< Changing settings related to a company. CMDT_SERVER_SETTING, ///< Pausing/removing companies/server settings. + CMDT_CHEAT, ///< A cheat of some sorts. CMDT_END, ///< Magic end marker. };