Terminate Bob's jetpack upon return from teleporter.
This commit is contained in:
parent
32949a192c
commit
e923f3286e
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue