Call change environment when finishing teleport, for instances where teleportation occurred in water.
This commit is contained in:
parent
f720d9457c
commit
7dff960e42
|
@ -966,6 +966,7 @@ static void handleTeleport(void)
|
||||||
addTeleportStars(self);
|
addTeleportStars(self);
|
||||||
self->dx = self->dy = 0;
|
self->dx = self->dy = 0;
|
||||||
self->environment = ENV_AIR;
|
self->environment = ENV_AIR;
|
||||||
|
self->changeEnvironment();
|
||||||
playBattleSound(SND_TELEPORT, self->uniqueId % MAX_SND_CHANNELS, self->x, self->y);
|
playBattleSound(SND_TELEPORT, self->uniqueId % MAX_SND_CHANNELS, self->x, self->y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue