mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-21 22:53:19 +00:00
(svn r1079) -Fix: you can once again quit the game in windows by pressing ALT+F4 or the 'exit' button in the main menu.
This commit is contained in:
parent
1b386f46b4
commit
043b8bc5ad
11
win32.c
11
win32.c
@ -226,15 +226,14 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
|
||||
}
|
||||
|
||||
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();
|
||||
_exit_game = true;
|
||||
} else
|
||||
AskExitGame();
|
||||
} else
|
||||
return ML_QUIT;
|
||||
AskExitGame();
|
||||
|
||||
return 0;
|
||||
|
||||
case WM_LBUTTONDOWN:
|
||||
|
Loading…
Reference in New Issue
Block a user