From 9f8ef4ad42b7d1cce4f982f2a6d599ec2024a9d1 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 18 Feb 2018 11:53:01 +0000 Subject: [PATCH] Set world status upon init. --- src/world/world.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/world/world.c b/src/world/world.c index f969665..5b0734e 100644 --- a/src/world/world.c +++ b/src/world/world.c @@ -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);