Changeset - r646:a00ef5013d4e
[Not reviewed]
master
0 1 0
darkvater - 19 years ago 2004-12-14 00:45:24
darkvater@openttd.org
(svn r1079) -Fix: you can once again quit the game in windows by pressing ALT+F4 or the 'exit' button in the main menu.
1 file changed with 5 insertions and 6 deletions:
win32.c
5
6
0 comments (0 inline, 0 general)
win32.c
Show inline comments
 
@@ -226,15 +226,14 @@ static LRESULT CALLBACK WndProcGdi(HWND 
 
	}
 

	
 
	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:
0 comments (0 inline, 0 general)