From e09ba650f375b69d28b971b145d81cdb9721e62e Mon Sep 17 00:00:00 2001 From: TheXaman <48356183+TheXaman@users.noreply.github.com> Date: Tue, 30 Aug 2022 17:12:23 +0200 Subject: [PATCH] imrpoved code formatting in field_control_avatar as per suggestion --- src/field_control_avatar.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/field_control_avatar.c b/src/field_control_avatar.c index 137fe8980..6f5460f58 100644 --- a/src/field_control_avatar.c +++ b/src/field_control_avatar.c @@ -138,7 +138,8 @@ void FieldGetPlayerInput(struct FieldInput *input, u16 newKeys, u16 heldKeys) { input->input_field_1_0 = TRUE; input->pressedSelectButton = FALSE; - }else if(input->pressedStartButton) + } + else if (input->pressedStartButton) { input->input_field_1_2 = TRUE; input->pressedStartButton = FALSE; @@ -146,16 +147,17 @@ void FieldGetPlayerInput(struct FieldInput *input, u16 newKeys, u16 heldKeys) } if (heldKeys & L_BUTTON) { - if(input->pressedSelectButton) + if (input->pressedSelectButton) { input->input_field_1_1 = TRUE; input->pressedSelectButton = FALSE; - }else if(input->pressedStartButton) + } + else if (input->pressedStartButton) { input->input_field_1_3 = TRUE; input->pressedStartButton = FALSE; } - } + } #endif }