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();
|
saveGame();
|
||||||
saveWorld();
|
saveWorld();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
restoreGameState();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void logic(void)
|
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 void playSound(int snd, int ch);
|
||||||
extern int isAcceptControl(void);
|
extern int isAcceptControl(void);
|
||||||
extern void clearControls(void);
|
extern void clearControls(void);
|
||||||
|
extern void restoreGameState(void);
|
||||||
|
|
||||||
extern App app;
|
extern App app;
|
||||||
extern Colors colors;
|
extern Colors colors;
|
||||||
|
|
|
@ -54,8 +54,6 @@ void initAtlasTest(void)
|
||||||
case 3:
|
case 3:
|
||||||
STRNCPY(game.worldId, "beachFront1", MAX_NAME_LENGTH);
|
STRNCPY(game.worldId, "beachFront1", MAX_NAME_LENGTH);
|
||||||
initWorld();
|
initWorld();
|
||||||
stopMusic();
|
|
||||||
initPostMission();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue