Merge pull request #758 from ultima-soul/nonmatching

Match TryInterruptEventObjectSpecialAnim without asm hack.
This commit is contained in:
Diegoisawesome 2019-07-30 00:03:36 -05:00 committed by GitHub
commit cb4ba65560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,14 +336,9 @@ void player_step(u8 direction, u16 newKeys, u16 heldKeys)
static bool8 TryInterruptEventObjectSpecialAnim(struct EventObject *playerEventObj, u8 direction)
{
#ifdef NONMATCHING
u8 r5 = direction;
u8 r6 = direction;
#else
u8 r5 = direction;
register u8 r6 asm("r6") = direction;
#endif
//a very bad HACK
u8 r5 = direction;
u8 r6 = direction;
r6++; r6--;
if (EventObjectIsMovementOverridden(playerEventObj)
&& !EventObjectClearHeldMovementIfFinished(playerEventObj))