diff options
author | skidd13 <skidd13@openttd.org> | 2007-12-12 21:56:10 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-12-12 21:56:10 +0000 |
commit | 3b849778c13404a31104123d3fb2b318cdbea7c5 (patch) | |
tree | a283d707f87e6c4c59af67c90bff1b57172d3096 /src/main_gui.cpp | |
parent | 3b59b68a154d16934ab84e4ec49d91300fbcb539 (diff) | |
download | openttd-3b849778c13404a31104123d3fb2b318cdbea7c5.tar.xz |
(svn r11626) -Fix [FS#1529]: Pause state wasn't set correctly in multiplayer saves
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r-- | src/main_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index f1d8d447d..82faefb59 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -1677,12 +1677,12 @@ static void MainToolbarWndProc(Window *w, WindowEvent *e) } break; case WE_MOUSELOOP: - if (w->IsWidgetLowered(0) != !!_pause_game) { + if (w->IsWidgetLowered(0) != (bool)_pause_game) { w->ToggleWidgetLoweredState(0); w->InvalidateWidget(0); } - if (w->IsWidgetLowered(1) != !!_fast_forward) { + if (w->IsWidgetLowered(1) != (bool)_fast_forward) { w->ToggleWidgetLoweredState(1); w->InvalidateWidget(1); } @@ -1986,12 +1986,12 @@ static void ScenEditToolbarWndProc(Window *w, WindowEvent *e) } break; case WE_MOUSELOOP: - if (w->IsWidgetLowered(0) != !!_pause_game) { + if (w->IsWidgetLowered(0) != (bool)_pause_game) { w->ToggleWidgetLoweredState(0); SetWindowDirty(w); } - if (w->IsWidgetLowered(1) != !!_fast_forward) { + if (w->IsWidgetLowered(1) != (bool)_fast_forward) { w->ToggleWidgetLoweredState(1); SetWindowDirty(w); } |