Skip to content

Commit

Permalink
feat: change select song direction
Browse files Browse the repository at this point in the history
  • Loading branch information
boulce committed Jun 10, 2024
1 parent df71cc7 commit 5f955e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions game/src/game/select_song.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 5f955e7

Please sign in to comment.