fix exiting sideways stairs onto ice. thanks to Agustin
This commit is contained in:
parent
e52349b474
commit
d80cf0a193
1 changed files with 16 additions and 1 deletions
|
@ -444,7 +444,22 @@ static bool8 ForcedMovement_None(void)
|
|||
static bool8 DoForcedMovement(u8 direction, void (*moveFunc)(u8))
|
||||
{
|
||||
struct PlayerAvatar *playerAvatar = &gPlayerAvatar;
|
||||
u8 collision = CheckForPlayerAvatarCollision(direction);
|
||||
u8 collision;
|
||||
|
||||
// Check for sideways stairs onto ice movement.
|
||||
switch (direction)
|
||||
{
|
||||
case DIR_NORTHWEST:
|
||||
case DIR_SOUTHWEST:
|
||||
direction = DIR_WEST;
|
||||
break;
|
||||
case DIR_NORTHEAST:
|
||||
case DIR_SOUTHEAST:
|
||||
direction = DIR_EAST;
|
||||
break;
|
||||
}
|
||||
|
||||
collision = CheckForPlayerAvatarCollision(direction);
|
||||
|
||||
playerAvatar->flags |= PLAYER_AVATAR_FLAG_FORCED_MOVE;
|
||||
if (collision)
|
||||
|
|
Loading…
Reference in a new issue