@@ -223,21 +223,20 @@ static LRESULT CALLBACK WndProcGdi(HWND
if (nChanged)
InvalidateRect(hwnd, NULL, FALSE);
return 0;
}
case WM_CLOSE:
// do not ask to quit on the main screen
if (_game_mode != GM_MENU) {
if(_patches.autosave_on_exit) {
if (_game_mode == GM_MENU) { // do not ask to quit on the main screen
_exit_game = true;
} else if (_patches.autosave_on_exit) {
DoExitSave();
} else
AskExitGame();
return ML_QUIT;
case WM_LBUTTONDOWN:
SetCapture(hwnd);
_left_button_down = true;
Status change: