Nuke redundant in_startup_mode variable

This commit is contained in:
2014-04-15 00:13:18 -04:00
parent c4fc32e06e
commit 93c5921503
14 changed files with 55 additions and 62 deletions

View File

@@ -18,7 +18,7 @@ extern void finish_load_party();
extern void end_startup();
extern void post_load();
extern bool app_started_normally, ae_loading, in_startup_mode, startup_loaded, All_Done;
extern bool app_started_normally, ae_loading, startup_loaded, All_Done;
extern eGameMode overall_mode;
extern cUniverse univ;
@@ -75,15 +75,15 @@ void set_up_apple_events() {
finish_load_party();
ae_loading = false;
if(!in_startup_mode && startup_loaded)
if(overall_mode != MODE_STARTUP && startup_loaded)
end_startup();
if(!in_startup_mode) {
if(overall_mode != MODE_STARTUP) {
post_load();
}
}
-(void)handleQuit:(AEDescr*)theAppleEvent withReply: (AEDescr*)reply {
if((overall_mode == MODE_STARTUP/*40*/) || (in_startup_mode)) {
if(overall_mode == MODE_STARTUP) {
All_Done = true;
return;
}