mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-10 07:13:02 +01:00
Match TryInterruptEventObjectSpecialAnim without asm hack.
This commit is contained in:
parent
136da953d6
commit
c77dc74410
@ -336,14 +336,9 @@ void player_step(u8 direction, u16 newKeys, u16 heldKeys)
|
|||||||
|
|
||||||
static bool8 TryInterruptEventObjectSpecialAnim(struct EventObject *playerEventObj, u8 direction)
|
static bool8 TryInterruptEventObjectSpecialAnim(struct EventObject *playerEventObj, u8 direction)
|
||||||
{
|
{
|
||||||
#ifdef NONMATCHING
|
|
||||||
u8 r5 = direction;
|
u8 r5 = direction;
|
||||||
u8 r6 = direction;
|
u8 r6 = direction;
|
||||||
#else
|
r6++; r6--;
|
||||||
u8 r5 = direction;
|
|
||||||
register u8 r6 asm("r6") = direction;
|
|
||||||
#endif
|
|
||||||
//a very bad HACK
|
|
||||||
|
|
||||||
if (EventObjectIsMovementOverridden(playerEventObj)
|
if (EventObjectIsMovementOverridden(playerEventObj)
|
||||||
&& !EventObjectClearHeldMovementIfFinished(playerEventObj))
|
&& !EventObjectClearHeldMovementIfFinished(playerEventObj))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user