Mercurial > hg > openttd
changeset 8070:35ff452cee80 draft
(svn r11631) -Fix (r11585, r11626): remove MSVC warnings
author | glx <glx@openttd.org> |
---|---|
date | Fri, 14 Dec 2007 00:25:00 +0000 |
parents | a90454fc149b |
children | 3875060e458c |
files | src/main_gui.cpp src/newgrf_gui.cpp |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -1677,12 +1677,12 @@ } break; case WE_MOUSELOOP: - if (w->IsWidgetLowered(0) != (bool)_pause_game) { + if (w->IsWidgetLowered(0) != !!_pause_game) { w->ToggleWidgetLoweredState(0); w->InvalidateWidget(0); } - if (w->IsWidgetLowered(1) != (bool)_fast_forward) { + if (w->IsWidgetLowered(1) != !!_fast_forward) { w->ToggleWidgetLoweredState(1); w->InvalidateWidget(1); } @@ -1986,12 +1986,12 @@ } break; case WE_MOUSELOOP: - if (w->IsWidgetLowered(0) != (bool)_pause_game) { + if (w->IsWidgetLowered(0) != !!_pause_game) { w->ToggleWidgetLoweredState(0); SetWindowDirty(w); } - if (w->IsWidgetLowered(1) != (bool)_fast_forward) { + if (w->IsWidgetLowered(1) != !!_fast_forward) { w->ToggleWidgetLoweredState(1); SetWindowDirty(w); }