diff options
author | rubidium <rubidium@openttd.org> | 2010-12-07 21:13:00 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-07 21:13:00 +0000 |
commit | 5dbd80ff3cfe9dc161a1d4e1c2cf940e67330a4d (patch) | |
tree | ea89e5d5dae2b4fc9934738a77bdf9ba2093f82a /src | |
parent | 0c23b0b3a400457754b2429e56c3e9a9dbaad1a4 (diff) | |
download | openttd-5dbd80ff3cfe9dc161a1d4e1c2cf940e67330a4d.tar.xz |
(svn r21430) -Feature [FS#1521]: building while paused always works in the scenario editor
Diffstat (limited to 'src')
-rw-r--r-- | src/command.cpp | 2 | ||||
-rw-r--r-- | src/openttd.cpp | 2 | ||||
-rw-r--r-- | src/window.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/command.cpp b/src/command.cpp index 273e22bd0..4dbf664df 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -370,7 +370,7 @@ bool IsCommandAllowedWhilePaused(uint32 cmd) assert_compile(lengthof(command_type_lookup) == CMDT_END); assert(IsValidCommand(cmd)); - return command_type_lookup[_command_proc_table[cmd & CMD_ID_MASK].type] <= _settings_game.construction.command_pause_level; + return _game_mode == GM_EDITOR || command_type_lookup[_command_proc_table[cmd & CMD_ID_MASK].type] <= _settings_game.construction.command_pause_level; } diff --git a/src/openttd.cpp b/src/openttd.cpp index 335533770..1e6df5f60 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1365,7 +1365,7 @@ void GameLoop() if (!_pause_mode && HasBit(_display_opt, DO_FULL_ANIMATION)) DoPaletteAnimations(); - if (!_pause_mode || _settings_game.construction.command_pause_level > CMDPL_NO_CONSTRUCTION) MoveAllTextEffects(); + if (!_pause_mode || _game_mode == GM_EDITOR || _settings_game.construction.command_pause_level > CMDPL_NO_CONSTRUCTION) MoveAllTextEffects(); InputLoop(); diff --git a/src/window.cpp b/src/window.cpp index 7d1f6e120..5c6ef3fa7 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -2213,7 +2213,7 @@ static void MouseLoop(MouseClick click, int mousewheel) case MC_DOUBLE_LEFT: case MC_LEFT: DEBUG(misc, 2, "Cursor: 0x%X (%d)", _cursor.sprite, _cursor.sprite); - if (_thd.place_mode != HT_NONE && _pause_mode != PM_UNPAUSED) { + if (_thd.place_mode != HT_NONE && _pause_mode != PM_UNPAUSED && _game_mode != GM_EDITOR) { switch (_settings_game.construction.command_pause_level) { case CMDPL_ALL_ACTIONS: /* We allow all actions. */ |