fixed graphical bugs when using smooth movements with BD engine
authorHolger Schemel <info@artsoft.org>
Thu, 7 Mar 2024 00:08:40 +0000 (01:08 +0100)
committerHolger Schemel <info@artsoft.org>
Thu, 7 Mar 2024 00:08:43 +0000 (01:08 +0100)
src/game_bd/bd_gameplay.c

index 9f1d96e6d30ae4f7f57077cbdda07179dc5fbb51..55905ec6961f9355387ab2ad81cfa3ac0c1dcb06 100644 (file)
@@ -383,7 +383,7 @@ static GdGameState gd_game_main_int(GdGame *game, boolean allow_iterate, boolean
       {
        for (x = 0; x < game->cave->w; x++)
        {
-         game->last_element_buffer[y][x] = game->element_buffer[y][x];
+         game->last_element_buffer[y][x] = game->element_buffer[y][x] & ~SKIPPED;
          game->dir_buffer[y][x] = GD_MV_STILL;
        }
       }