From 84cb04fa38dbb3a994012137269323d27b413d94 Mon Sep 17 00:00:00 2001 From: HornedCrusader <79373093+HornedCrusader@users.noreply.github.com> Date: Sat, 20 Feb 2021 11:52:41 -0500 Subject: [PATCH] Fix bike flag --- src/field_player_avatar.c | 3 +-- 1 file changed, 1 insertion(+), 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);