Fix boolean condition

Use the short-circuit operator && between booleans.
This commit is contained in:
Romain Vimont 2024-04-19 12:49:03 +02:00
parent bcb8503b26
commit 22d78e8a82

View file

@ -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);
}
@ -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);
}