From e923f3286e6024620eb971c65d8e6d75d675e52a Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 18 Mar 2018 12:48:31 +0000 Subject: [PATCH] Terminate Bob's jetpack upon return from teleporter. --- src/world/entities.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/world/entities.c b/src/world/entities.c index 8a4fe26..bb16e65 100644 --- a/src/world/entities.c +++ b/src/world/entities.c @@ -999,6 +999,11 @@ static void handleTeleport(void) self->environment = ENV_AIR; self->changeEnvironment(); playBattleSound(SND_TELEPORT, self->uniqueId % MAX_SND_CHANNELS, self->x, self->y); + + if (self == (Entity*)world.bob) + { + terminateJetpack(); + } } }