Restore game state if the mission remains in incomplete status.

This commit is contained in:
Steve 2018-02-21 08:43:45 +00:00
parent 84c934a1cb
commit e887e385c7
6 changed files with 9 additions and 6 deletions

View File

@ -83,6 +83,10 @@ static void updateMissionStatus(void)
saveGame();
saveWorld();
}
else
{
restoreGameState();
}
}
static void logic(void)

View File

@ -35,6 +35,7 @@ extern float limit(float i, float low, float high);
extern void playSound(int snd, int ch);
extern int isAcceptControl(void);
extern void clearControls(void);
extern void restoreGameState(void);
extern App app;
extern Colors colors;

View File

@ -54,8 +54,6 @@ void initAtlasTest(void)
case 3:
STRNCPY(game.worldId, "beachFront1", MAX_NAME_LENGTH);
initWorld();
stopMusic();
initPostMission();
break;
}
}