Removed switch case per https://github.com/rh-hideout/pokeemerald-expansion/pull/5278\#discussion_r1779197182
This commit is contained in:
parent
eb1469af1d
commit
874d4d0470
1 changed files with 12 additions and 13 deletions
|
@ -1618,20 +1618,19 @@ void DoStairWarp(u16 metatileBehavior, u16 delay)
|
|||
|
||||
bool32 IsDirectionalStairWarpMetatileBehavior(u16 metatileBehavior, u8 playerDirection)
|
||||
{
|
||||
switch (playerDirection)
|
||||
if (playerDirection == DIR_WEST)
|
||||
{
|
||||
case DIR_WEST:
|
||||
if (MetatileBehavior_IsDirectionalUpLeftStairWarp(metatileBehavior))
|
||||
return TRUE;
|
||||
if (MetatileBehavior_IsDirectionalDownLeftStairWarp(metatileBehavior))
|
||||
return TRUE;
|
||||
break;
|
||||
case DIR_EAST:
|
||||
if (MetatileBehavior_IsDirectionalUpRightStairWarp(metatileBehavior))
|
||||
return TRUE;
|
||||
if (MetatileBehavior_IsDirectionalDownRightStairWarp(metatileBehavior))
|
||||
return TRUE;
|
||||
break;
|
||||
if (MetatileBehavior_IsDirectionalUpLeftStairWarp(metatileBehavior))
|
||||
return TRUE;
|
||||
if (MetatileBehavior_IsDirectionalDownLeftStairWarp(metatileBehavior))
|
||||
return TRUE;
|
||||
}
|
||||
else if (playerDirection == DIR_EAST)
|
||||
{
|
||||
if (MetatileBehavior_IsDirectionalUpRightStairWarp(metatileBehavior))
|
||||
return TRUE;
|
||||
if (MetatileBehavior_IsDirectionalDownRightStairWarp(metatileBehavior))
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue