added setup option for using "player is pushing" graphics in BD engine
[rocksndiamonds.git] / src / game_bd / bd_cave.c
index 8cc703a493a7022241d47e4e63467cd7e95fc06d..7e808a25727c8239a50a6c5ab0097e283ffc0c9b 100644 (file)
@@ -1541,7 +1541,8 @@ void gd_drawcave_game(const GdCave *cave,
        draw = elemdrawing[actual];
 
       // draw special graphics if player is pushing something
-      if ((cave->last_direction == GD_MV_LEFT || cave->last_direction == GD_MV_RIGHT) &&
+      if (use_bd_pushing_graphics() &&
+         (cave->last_direction == GD_MV_LEFT || cave->last_direction == GD_MV_RIGHT) &&
          is_player(cave, x, y) && can_be_pushed_dir(cave, x, y, cave->last_direction))
       {
        // special check needed when smooth game element movements selected in setup menu: