diff options
author | rubidium <rubidium@openttd.org> | 2011-02-07 22:23:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-02-07 22:23:37 +0000 |
commit | 68ace1b79bb712b471eb0d19ade19b20a7ad271d (patch) | |
tree | 4e85c862821701c84a41084ba8050c80343d71c7 /src | |
parent | 3745ff7338a7e3c9c4bff665f6952fd71c384ff8 (diff) | |
download | openttd-68ace1b79bb712b471eb0d19ade19b20a7ad271d.tar.xz |
(svn r22016) -Fix [FS#4479]: when paused and having the allowed actions while paused setting on "no actions" cheating money would fail
Diffstat (limited to 'src')
-rw-r--r-- | src/command.cpp | 3 | ||||
-rw-r--r-- | src/command_type.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/command.cpp b/src/command.cpp index 2dd369334..61e570da9 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -272,7 +272,7 @@ static const Command _command_proc_table[] = { 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 @@ bool IsCommandAllowedWhilePaused(uint32 cmd) 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); diff --git a/src/command_type.h b/src/command_type.h index 160b36cc9..5a586fcda 100644 --- a/src/command_type.h +++ b/src/command_type.h @@ -343,6 +343,7 @@ enum CommandType { 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. }; |