X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=54ae41a2fe154713af63ac92fde530b6895d8a62;hb=24101bdeee0ac963cfd48b5220f6d9b0188a6f69;hp=2b4c7c0d02b75cf1a5453c9d2c83c24057d7fa79;hpb=6e392e90d99cc0b6d8af3a15fc334bf34f889994;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 2b4c7c0d..54ae41a2 100644 --- a/src/game.c +++ b/src/game.c @@ -10401,7 +10401,7 @@ static void CheckGravityMovement(struct PlayerInfo *player) { int move_dir_horizontal = player->effective_action & MV_HORIZONTAL; int move_dir_vertical = player->effective_action & MV_VERTICAL; - boolean player_is_snapping = player->effective_action & JOY_BUTTON_1; + boolean player_is_snapping = (player->effective_action & JOY_BUTTON_1); int jx = player->jx, jy = player->jy; boolean player_is_moving_to_valid_field = (!player_is_snapping &&