Restore game state if the mission remains in incomplete status.
This commit is contained in:
parent
84c934a1cb
commit
e887e385c7
|
@ -83,6 +83,10 @@ static void updateMissionStatus(void)
|
|||
saveGame();
|
||||
saveWorld();
|
||||
}
|
||||
else
|
||||
{
|
||||
restoreGameState();
|
||||
}
|
||||
}
|
||||
|
||||
static void logic(void)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -54,8 +54,6 @@ void initAtlasTest(void)
|
|||
case 3:
|
||||
STRNCPY(game.worldId, "beachFront1", MAX_NAME_LENGTH);
|
||||
initWorld();
|
||||
stopMusic();
|
||||
initPostMission();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue