(svn r1079) -Fix: you can once again quit the game in windows by pressing ALT+F4 or the 'exit' button in the main menu.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
darkvater 20 years ago
parent 1b386f46b4
commit 043b8bc5ad

@ -226,15 +226,14 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
} }
case WM_CLOSE: case WM_CLOSE:
// do not ask to quit on the main screen if (_game_mode == GM_MENU) { // do not ask to quit on the main screen
if (_game_mode != GM_MENU) { _exit_game = true;
if(_patches.autosave_on_exit) { } else if (_patches.autosave_on_exit) {
DoExitSave(); DoExitSave();
_exit_game = true; _exit_game = true;
} else
AskExitGame();
} else } else
return ML_QUIT; AskExitGame();
return 0; return 0;
case WM_LBUTTONDOWN: case WM_LBUTTONDOWN:

Loading…
Cancel
Save