diff options
author | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2021-02-20 19:14:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-20 19:14:26 -0500 |
commit | 6872d6f196f0dbc11542cdcca846a8dac846151b (patch) | |
tree | 8c9e7e93e26494484146afc23820b8166bdac86b /src | |
parent | 549ddb8c9518c4409adfbbf9c536d2b14327a246 (diff) | |
parent | 84cb04fa38dbb3a994012137269323d27b413d94 (diff) |
Merge pull request #1338 from HornedCrusader/patch-1
Fix bike flag
Diffstat (limited to 'src')
-rw-r--r-- | src/field_player_avatar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/field_player_avatar.c b/src/field_player_avatar.c index 3d29e013f..4f85ad628 100644 --- a/src/field_player_avatar.c +++ b/src/field_player_avatar.c @@ -382,8 +382,7 @@ static void npc_clear_strange_bits(struct ObjectEvent *objEvent) static void MovePlayerAvatarUsingKeypadInput(u8 direction, u16 newKeys, u16 heldKeys) { - if ((gPlayerAvatar.flags & PLAYER_AVATAR_FLAG_MACH_BIKE) - || (gPlayerAvatar.flags & PLAYER_AVATAR_FLAG_ACRO_BIKE)) + if (gPlayerAvatar.flags & (PLAYER_AVATAR_FLAG_MACH_BIKE | PLAYER_AVATAR_FLAG_ACRO_BIKE)) MovePlayerOnBike(direction, newKeys, heldKeys); else MovePlayerNotOnBike(direction, heldKeys); |