Handle end of game in post mission.
This commit is contained in:
parent
6d9264fbac
commit
0605da87ee
|
@ -41,7 +41,17 @@ void initPostMission(void)
|
|||
|
||||
updateMissionStatus();
|
||||
|
||||
if (world.state != WS_QUIT)
|
||||
if (world.state == WS_GAME_COMPLETE)
|
||||
{
|
||||
saveGame();
|
||||
|
||||
saveWorld();
|
||||
|
||||
destroyWorld();
|
||||
|
||||
initEnding();
|
||||
}
|
||||
else if (world.state != WS_QUIT)
|
||||
{
|
||||
app.restrictTrophyAlert = 0;
|
||||
|
||||
|
@ -101,17 +111,6 @@ void returnToHub(void)
|
|||
initHub();
|
||||
}
|
||||
|
||||
void returnToTitle(void)
|
||||
{
|
||||
restoreGameState();
|
||||
|
||||
saveGame();
|
||||
|
||||
destroyWorld();
|
||||
|
||||
initTitle();
|
||||
}
|
||||
|
||||
static void updateMissionStatus(void)
|
||||
{
|
||||
Tuple *t;
|
||||
|
|
|
@ -37,6 +37,7 @@ extern void restoreGameState(void);
|
|||
extern void saveGame(void);
|
||||
extern void saveWorld(void);
|
||||
extern void startSectionTransition(void);
|
||||
extern void initEnding(void);
|
||||
|
||||
extern App app;
|
||||
extern Colors colors;
|
||||
|
|
|
@ -552,7 +552,7 @@ static void doGameComplete(void)
|
|||
{
|
||||
if (--world.missionCompleteTimer <= 0)
|
||||
{
|
||||
initEnding();
|
||||
initPostMission();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue