--- a/video/cocoa_v.m Mon Sep 04 15:44:28 2006 +0000
+++ b/video/cocoa_v.m Mon Sep 04 17:30:30 2006 +0000
@@ -197,22 +197,6 @@
-extern void DoExitSave(void);
-
-static void QZ_AskQuit(void)
-{
- 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();
- }
-}
-
-
-
typedef struct VkMapping {
unsigned short vk_from;
byte map_to;
@@ -921,7 +905,7 @@
@implementation OTTD_QuartzWindowDelegate
- (BOOL)windowShouldClose:(id)sender
{
- QZ_AskQuit();
+ HandleExitGameRequest();
return NO;
}