diff options
author | MCboy <atasro2@gmail.com> | 2018-07-25 17:28:25 +0430 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-25 17:28:25 +0430 |
commit | 3a15012085227ff5986c0e73d11c19b827794947 (patch) | |
tree | 9de19b34d67643712680b5df32555f68c3f3e0c0 /src | |
parent | 94a5f8d5291eb42febbf689cea0e8dec357a0b90 (diff) |
Update field_player_avatar.c
Diffstat (limited to 'src')
-rw-r--r-- | src/field_player_avatar.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/field_player_avatar.c b/src/field_player_avatar.c index a8eb835a3..9cdbf9956 100644 --- a/src/field_player_avatar.c +++ b/src/field_player_avatar.c @@ -577,9 +577,7 @@ u8 sub_808B238(s16 x, s16 y, u8 direction) { u8 eventObjectId = GetEventObjectIdByXY(x, y); - if (eventObjectId != 16) - { - if (gEventObjects[eventObjectId].graphicsId == 0x57) + if (eventObjectId != 16 && gEventObjects[eventObjectId].graphicsId == 0x57) { x = gEventObjects[eventObjectId].currentCoords.x; y = gEventObjects[eventObjectId].currentCoords.y; @@ -591,7 +589,6 @@ u8 sub_808B238(s16 x, s16 y, u8 direction) return 1; } } - } } return 0; } |