Update field_player_avatar.c

This commit is contained in:
MCboy 2018-07-25 17:47:04 +04:30 committed by GitHub
parent 3a15012085
commit 6c365fdc94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@
#include "fieldmap.h"
#include "overworld.h"
#include "rotating_gate.h"
#include "constants/event_object_movement_constants.h"
bool8 ForcedMovement_None(void);
bool8 ForcedMovement_Slip(void);
@ -178,7 +179,7 @@ bool8 TryInterruptEventObjectSpecialAnim(struct EventObject *playerEventObj, u8
&& !EventObjectClearHeldMovementIfFinished(playerEventObj))
{
u8 heldMovementActionId = EventObjectGetHeldMovementActionId(playerEventObj);
if (heldMovementActionId > 24 && heldMovementActionId < 29)
if (heldMovementActionId > MOVEMENT_ACTION_WALK_FAST_RIGHT && heldMovementActionId < MOVEMENT_ACTION_WALK_IN_PLACE_NORMAL_DOWN)
{
if (direction == DIR_NONE)
{