summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2012-09-23 11:30:37 +0000
committerzuu <zuu@openttd.org>2012-09-23 11:30:37 +0000
commitd219fdb875ecbab6f0d97c04fa577c12b0ec0bd6 (patch)
tree2755f4ab9480fa41545470367685968415f6601f
parent934c56cb42c9de0ea9dab76bc42eb3f7ae2b6eba (diff)
downloadopenttd-d219fdb875ecbab6f0d97c04fa577c12b0ec0bd6.tar.xz
(svn r24552) -Fix (r24537): Unpause do no longer continue scripts
-rw-r--r--src/ai/ai_gui.cpp11
-rw-r--r--src/misc_cmd.cpp1
2 files changed, 0 insertions, 12 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 2eea88eec..69c8ff81b 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -1370,17 +1370,6 @@ struct AIDebugWindow : public QueryStringBaseWindow {
{
if (data == -1 || ai_debug_company == data) this->SetDirty();
- if (gui_scope && data == -2) {
- /* The continue button should be disabled when the game is unpaused and
- * it was previously paused. */
- if ((_pause_mode & PM_PAUSED_NORMAL) == PM_UNPAUSED && !this->IsWidgetDisabled(WID_AID_CONTINUE_BTN)) {
- this->DisableWidget(WID_AID_CONTINUE_BTN);
- this->SetWidgetDirty(WID_AID_CONTINUE_BTN);
- this->SetWidgetDirty(WID_AID_LOG_PANEL);
- this->highlight_row = -1;
- }
- }
-
/* If the log message is related to the active company tab, check the break string.
* This needs to be done in gameloop-scope, so the AI is suspended immediately. */
if (!gui_scope && data == ai_debug_company && this->break_check_enabled && !this->break_string_filter.IsEmpty()) {
diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp
index c2a4ee8a8..7f0dbc168 100644
--- a/src/misc_cmd.cpp
+++ b/src/misc_cmd.cpp
@@ -178,7 +178,6 @@ CommandCost CmdPause(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2,
} else {
_pause_mode = _pause_mode | p1;
}
- InvalidateWindowClassesData(WC_AI_DEBUG, -2);
#ifdef ENABLE_NETWORK
NetworkHandlePauseChange(prev_mode, (PauseMode)p1);