(svn r10848) [0.5] -Fix (r10841): 'mixed declaration and code' warning

This commit is contained in:
glx 2007-08-10 19:06:01 +00:00
parent f167d9bc50
commit 4b6e53b31c
1 changed files with 3 additions and 2 deletions

View File

@ -619,11 +619,12 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
#if !defined(WINCE)
case WM_ACTIVATE: {
bool active = (LOWORD(wParam) != WA_INACTIVE);
bool minimized = (HIWORD(wParam) != 0);
/* Don't do anything if we are closing openttd */
if (_exit_game) break;
bool active = (LOWORD(wParam) != WA_INACTIVE);
bool minimized = (HIWORD(wParam) != 0);
if (_wnd.fullscreen) {
if (active && minimized) {
/* Restore the game window */