Terminate Bob's jetpack upon return from teleporter.

This commit is contained in:
Steve 2018-03-18 12:48:31 +00:00
parent 32949a192c
commit e923f3286e
1 changed files with 5 additions and 0 deletions

View File

@ -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();
}
}
}