From db432c03e23be9a3f8cd0f8953cf8939c2fa40e5 Mon Sep 17 00:00:00 2001 From: Habin Song Date: Mon, 10 Jun 2024 21:49:48 +0900 Subject: [PATCH] feat: change select song direction --- game/src/game/select_song.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/game/src/game/select_song.rs b/game/src/game/select_song.rs index b484595..3792c5c 100644 --- a/game/src/game/select_song.rs +++ b/game/src/game/select_song.rs @@ -142,9 +142,9 @@ pub(crate) fn select_song( break 'running; } } else if (janggu_state.궁채.is_keydown_now - && matches!(janggu_state.궁채.face, Some(JangguFace::궁편))) + && matches!(janggu_state.궁채.face, Some(JangguFace::열편))) || (janggu_state.열채.is_keydown_now - && matches!(janggu_state.열채.face, Some(JangguFace::궁편))) + && matches!(janggu_state.열채.face, Some(JangguFace::열편))) { // to prevent changing direction when moving if moving_direction == MovingDirection::Stop { @@ -155,9 +155,9 @@ pub(crate) fn select_song( } } } else if (janggu_state.궁채.is_keydown_now - && matches!(janggu_state.궁채.face, Some(JangguFace::열편))) + && matches!(janggu_state.궁채.face, Some(JangguFace::궁편))) || (janggu_state.열채.is_keydown_now - && matches!(janggu_state.열채.face, Some(JangguFace::열편))) + && matches!(janggu_state.열채.face, Some(JangguFace::궁편))) { // to prevent changing direction when moving if moving_direction == MovingDirection::Stop {