Set world status upon init.

This commit is contained in:
Steve 2018-02-18 11:53:01 +00:00
parent daeaa28e88
commit 9f8ef4ad42
1 changed files with 5 additions and 0 deletions

View File

@ -42,6 +42,7 @@ static void options(void);
static void stats(void);
static void trophies(void);
static void quit(void);
int getMissionStatus(void);
static Texture *background;
static int observationIndex;
@ -53,6 +54,10 @@ void initWorld(void)
loadWorld(game.worldId);
world.currentStatus = getMissionStatus();
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG, "world.currentStatus = %d", world.currentStatus);
background = getTexture(world.background);
loadMusic(world.music);