mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-06 22:37:22 +00:00
(svn r11631) -Fix (r11585, r11626): remove MSVC warnings
This commit is contained in:
parent
2921e7482b
commit
ea1ae563c7
@ -1677,12 +1677,12 @@ static void MainToolbarWndProc(Window *w, WindowEvent *e)
|
|||||||
} break;
|
} break;
|
||||||
|
|
||||||
case WE_MOUSELOOP:
|
case WE_MOUSELOOP:
|
||||||
if (w->IsWidgetLowered(0) != (bool)_pause_game) {
|
if (w->IsWidgetLowered(0) != !!_pause_game) {
|
||||||
w->ToggleWidgetLoweredState(0);
|
w->ToggleWidgetLoweredState(0);
|
||||||
w->InvalidateWidget(0);
|
w->InvalidateWidget(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (w->IsWidgetLowered(1) != (bool)_fast_forward) {
|
if (w->IsWidgetLowered(1) != !!_fast_forward) {
|
||||||
w->ToggleWidgetLoweredState(1);
|
w->ToggleWidgetLoweredState(1);
|
||||||
w->InvalidateWidget(1);
|
w->InvalidateWidget(1);
|
||||||
}
|
}
|
||||||
@ -1986,12 +1986,12 @@ static void ScenEditToolbarWndProc(Window *w, WindowEvent *e)
|
|||||||
} break;
|
} break;
|
||||||
|
|
||||||
case WE_MOUSELOOP:
|
case WE_MOUSELOOP:
|
||||||
if (w->IsWidgetLowered(0) != (bool)_pause_game) {
|
if (w->IsWidgetLowered(0) != !!_pause_game) {
|
||||||
w->ToggleWidgetLoweredState(0);
|
w->ToggleWidgetLoweredState(0);
|
||||||
SetWindowDirty(w);
|
SetWindowDirty(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (w->IsWidgetLowered(1) != (bool)_fast_forward) {
|
if (w->IsWidgetLowered(1) != !!_fast_forward) {
|
||||||
w->ToggleWidgetLoweredState(1);
|
w->ToggleWidgetLoweredState(1);
|
||||||
SetWindowDirty(w);
|
SetWindowDirty(w);
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ static void NewGRFAddDlgWndProc(Window *w, WindowEvent *e)
|
|||||||
case WE_PAINT: {
|
case WE_PAINT: {
|
||||||
const GRFConfig *c;
|
const GRFConfig *c;
|
||||||
const Widget *wl = &w->widget[ANGRFW_GRF_LIST];
|
const Widget *wl = &w->widget[ANGRFW_GRF_LIST];
|
||||||
uint n = 0;
|
int n = 0;
|
||||||
|
|
||||||
/* Count the number of GRFs */
|
/* Count the number of GRFs */
|
||||||
for (c = _all_grfs; c != NULL; c = c->next) n++;
|
for (c = _all_grfs; c != NULL; c = c->next) n++;
|
||||||
|
Loading…
Reference in New Issue
Block a user