From 25cf4f28148fad3c8325f7bd9ac821ae8b3115cb Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 18 Feb 2018 11:25:00 +0000 Subject: [PATCH] Removed resumingMission field. --- src/entities/blobs/bob.c | 11 ++++------- src/structs.h | 1 - src/world/world.c | 5 ----- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/entities/blobs/bob.c b/src/entities/blobs/bob.c index 7085d3c..c31f3d7 100644 --- a/src/entities/blobs/bob.c +++ b/src/entities/blobs/bob.c @@ -604,14 +604,11 @@ void resetAtCheckpoint(void) changeSprite(walkSprite); world.bob->environment = ENV_AIR; - if (!game.isResumingMission) + world.bob->immuneTimer = FPS * 2; + addTeleportStars((Entity*)world.bob); + if (world.state == WS_IN_PROGRESS) { - world.bob->immuneTimer = FPS * 2; - addTeleportStars((Entity*)world.bob); - if (world.state == WS_IN_PROGRESS) - { - playSound(SND_APPEAR, CH_ANY); - } + playSound(SND_APPEAR, CH_ANY); } } diff --git a/src/structs.h b/src/structs.h index 9181f1f..08a3c84 100644 --- a/src/structs.h +++ b/src/structs.h @@ -366,7 +366,6 @@ typedef struct { int totalKeys; unsigned int stats[STAT_MAX]; char worldId[MAX_NAME_LENGTH]; - int isResumingMission; int isComplete; Tuple keys[MAX_KEY_TYPES]; Tuple missionStatusHead, *missionStatusTail; diff --git a/src/world/world.c b/src/world/world.c index 3b7c83f..f969665 100644 --- a/src/world/world.c +++ b/src/world/world.c @@ -99,11 +99,6 @@ void initWorld(void) { playMusic(1); } - - if (!game.isResumingMission) - { - game.stats[STAT_MISSIONS_PLAYED]++; - } world.bob->flags |= EF_GONE;