Skip to content

Commit

Permalink
Merge pull request #63 from cau-overchaos/change_select_song_direction
Browse files Browse the repository at this point in the history
feat: change select song direction
  • Loading branch information
boulce authored Jun 10, 2024
2 parents 67bafcf + db432c0 commit 1a1dd78
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 1a1dd78

Please sign in to comment.