diff --git a/src/hub/hub.c b/src/hub/hub.c index 314a604..b15880b 100644 --- a/src/hub/hub.c +++ b/src/hub/hub.c @@ -354,7 +354,7 @@ static void draw(void) case SHOW_NONE: if (selectedMission != NULL) { - drawMissionInfo(); + drawMissionInfo(); drawWidgets(); } blitRect(atlasTexture->texture, cursor.x, cursor.y, getCurrentFrame(cursorSpr), 1); diff --git a/src/hub/postMission.c b/src/hub/postMission.c index f634bac..83451ad 100644 --- a/src/hub/postMission.c +++ b/src/hub/postMission.c @@ -80,9 +80,13 @@ static void updateMissionStatus(void) if (status != MS_INCOMPLETE) { - saveGame(); + saveGame(); saveWorld(); } + else + { + restoreGameState(); + } } static void logic(void) diff --git a/src/hub/postMission.h b/src/hub/postMission.h index 5295dda..87b6604 100644 --- a/src/hub/postMission.h +++ b/src/hub/postMission.h @@ -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; diff --git a/src/test/atlasTest.c b/src/test/atlasTest.c index f914d18..09d2839 100644 --- a/src/test/atlasTest.c +++ b/src/test/atlasTest.c @@ -54,8 +54,6 @@ void initAtlasTest(void) case 3: STRNCPY(game.worldId, "beachFront1", MAX_NAME_LENGTH); initWorld(); - stopMusic(); - initPostMission(); break; } } diff --git a/src/world/hud.c b/src/world/hud.c index 25f0e57..09d38b3 100644 --- a/src/world/hud.c +++ b/src/world/hud.c @@ -47,7 +47,7 @@ void doHud(void) { if (--messageTime <= 0) { - messageType = MSG_STANDARD; + messageType = MSG_STANDARD; messageTime = 0; } diff --git a/src/world/world.c b/src/world/world.c index 96daded..2bf3c5a 100644 --- a/src/world/world.c +++ b/src/world/world.c @@ -259,7 +259,7 @@ static void startMission(void) world.state = WS_IN_PROGRESS; world.betweenTimer = FPS / 2; - r = &self->sprite[self->facing]->frames[self->spriteFrame]->rect; + r = &self->sprite[self->facing]->frames[self->spriteFrame]->rect; self->w = r->w; self->h = r->h;