fix bike tire tracks off sideways stairs
This commit is contained in:
parent
cedd2967d8
commit
e0ee7ce484
1 changed files with 2 additions and 1 deletions
|
@ -8313,12 +8313,13 @@ static void DoTracksGroundEffect_BikeTireTracks(struct ObjectEvent *objEvent, st
|
|||
|
||||
if (objEvent->currentCoords.x != objEvent->previousCoords.x || objEvent->currentCoords.y != objEvent->previousCoords.y)
|
||||
{
|
||||
u8 movementDir = (objEvent->previousMovementDirection > DIR_EAST) ? (objEvent->previousMovementDirection - DIR_EAST) : objEvent->previousMovementDirection;
|
||||
gFieldEffectArguments[0] = objEvent->previousCoords.x;
|
||||
gFieldEffectArguments[1] = objEvent->previousCoords.y;
|
||||
gFieldEffectArguments[2] = 149;
|
||||
gFieldEffectArguments[3] = 2;
|
||||
gFieldEffectArguments[4] =
|
||||
bikeTireTracks_Transitions[objEvent->previousMovementDirection][objEvent->facingDirection - 5];
|
||||
bikeTireTracks_Transitions[movementDir][objEvent->facingDirection - 5];
|
||||
FieldEffectStart(FLDEFF_BIKE_TIRE_TRACKS);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue