mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Handle external quits while in editor
This mitigates against potential data loss after having finished editing a house.
This commit is contained in:
@@ -28,7 +28,7 @@ void HandleOSEvent (EventRecord *);
|
||||
void HandleHighLevelEvent (EventRecord *);
|
||||
void HandleIdleTask (void);
|
||||
void IncrementMode (void);
|
||||
|
||||
void DoEndGame (void);
|
||||
|
||||
|
||||
long lastUp, incrementModeTime;
|
||||
@@ -398,6 +398,17 @@ void HandleIdleTask (void)
|
||||
HandleSplashResolutionChange();
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef COMPILEDEMO
|
||||
if (quitting) {
|
||||
if (theMode == kEditMode) {
|
||||
if (!QuerySaveChanges()) {
|
||||
quitting = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
TickMainMenuUI();
|
||||
}
|
||||
|
Reference in New Issue
Block a user