disabled smooth movement for player entering exit in BD engine
authorHolger Schemel <info@artsoft.org>
Thu, 22 Feb 2024 21:58:32 +0000 (22:58 +0100)
committerHolger Schemel <info@artsoft.org>
Thu, 22 Feb 2024 22:00:40 +0000 (23:00 +0100)
src/game_bd/bd_graphics.c

index 3d7819195060a201f4bc0f404e877c27c4f1d9dd..62981ec8dafccc0045cae1065122355335c433aa 100644 (file)
@@ -332,6 +332,10 @@ static void gd_drawcave_tile(Bitmap *dest, GdGame *game, int x, int y, boolean d
   if (is_explosion(tile) && dir != GD_MV_STILL)
     use_smooth_movements = FALSE;
 
+  // do not use smooth movement animation for player entering exit (engine stopped)
+  if (cave->player_state == GD_PL_EXITED)
+    use_smooth_movements = FALSE;
+
 #if DO_GFX_SANITY_CHECK
   if (use_native_bd_graphics_engine() && !setup.small_game_graphics && !program.headless)
   {