Skip to content

Commit

Permalink
Fix boolean condition
Browse files Browse the repository at this point in the history
Use the short-circuit operator && between booleans.
  • Loading branch information
rom1v authored and FreedomBen committed Aug 2, 2024
1 parent 06c25d1 commit b7a2bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/input_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ sc_input_manager_process_key(struct sc_input_manager *im,
return;
case SDLK_DOWN:
if (shift) {
if (!repeat & down) {
if (!repeat && down) {
apply_orientation_transform(im,
SC_ORIENTATION_FLIP_180);
}
Expand All @@ -479,7 +479,7 @@ sc_input_manager_process_key(struct sc_input_manager *im,
return;
case SDLK_UP:
if (shift) {
if (!repeat & down) {
if (!repeat && down) {
apply_orientation_transform(im,
SC_ORIENTATION_FLIP_180);
}
Expand Down

0 comments on commit b7a2bd0

Please sign in to comment.