mirror of
https://github.com/pret/pokeemerald.git
synced 2026-05-09 04:13:03 -05:00
Merge b228155bb0 into a3c551fe21
This commit is contained in:
commit
c4c5a232a3
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user