Set world status upon init.
This commit is contained in:
parent
daeaa28e88
commit
9f8ef4ad42
|
@ -42,6 +42,7 @@ static void options(void);
|
||||||
static void stats(void);
|
static void stats(void);
|
||||||
static void trophies(void);
|
static void trophies(void);
|
||||||
static void quit(void);
|
static void quit(void);
|
||||||
|
int getMissionStatus(void);
|
||||||
|
|
||||||
static Texture *background;
|
static Texture *background;
|
||||||
static int observationIndex;
|
static int observationIndex;
|
||||||
|
@ -53,6 +54,10 @@ void initWorld(void)
|
||||||
|
|
||||||
loadWorld(game.worldId);
|
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);
|
background = getTexture(world.background);
|
||||||
|
|
||||||
loadMusic(world.music);
|
loadMusic(world.music);
|
||||||
|
|
Loading…
Reference in New Issue