(svn r11626) -Fix [FS#1529]: Pause state wasn't set correctly in multiplayer saves

This commit is contained in:
skidd13
2007-12-12 21:56:10 +00:00
parent 5acc147c1c
commit 1d9c27e235
3 changed files with 10 additions and 6 deletions

View File

@@ -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);
}