This commit is contained in:
AreaZeroArven 2026-04-23 20:08:55 -04:00 committed by GitHub
commit c4c5a232a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2360,13 +2360,9 @@ u8 CreateCopySpriteAt(struct Sprite *sprite, s16 x, s16 y, u8 subpriority)
void SetObjectEventDirection(struct ObjectEvent *objectEvent, u8 direction)
{
s8 d2;
objectEvent->previousMovementDirection = objectEvent->facingDirection;
if (!objectEvent->facingDirectionLocked)
{
d2 = direction;
objectEvent->facingDirection = d2;
}
objectEvent->facingDirection = direction;
objectEvent->movementDirection = direction;
}