summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-08-12 09:36:22 +0000
committerdominik <dominik@openttd.org>2004-08-12 09:36:22 +0000
commitdf26dc7687613d6c66af57cac5a3208c26274fb8 (patch)
treea0bdc3ae4a5d11a069f438228dd65c7c307546ec
parent0dd5113a98b6e75010b93cf2fba462c035a79d57 (diff)
downloadopenttd-df26dc7687613d6c66af57cac5a3208c26274fb8.tar.xz
(svn r25) Fix: [ 1007630 ] Scenario editor pause bug
-rw-r--r--main_gui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main_gui.c b/main_gui.c
index 7340432d7..f6bae51c1 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -1896,6 +1896,11 @@ static void ScenEditToolbarWndProc(Window *w, WindowEvent *e)
case WE_ON_EDIT_TEXT: HandleOnEditText(e); break;
case WE_MOUSELOOP:
+ if (((w->click_state) & 1) != (uint)!!_pause) {
+ w->click_state ^= (1 << 0);
+ SetWindowDirty(w);
+ }
+
if (((w->click_state >> 1) & 1) != (uint)!!_fast_forward) {
w->click_state ^= (1 << 1);
SetWindowDirty(w);