changed functions to check smooth movements in BD engine
[rocksndiamonds.git] / src / game_bd / main_bd.c
index f6d60f6ea39538ca30bcfb8e057c23160f5d9f6c..c734d5ea0990875a1b87402c673c073eb374acc4 100644 (file)
@@ -433,6 +433,19 @@ void GameActions_BD(byte action[MAX_PLAYERS])
 // graphics functions
 // ============================================================================
 
+// check if native BD graphics engine requested in custom graphics configuration
+boolean use_native_bd_graphics_engine(void)
+{
+  return game.use_native_bd_graphics_engine;
+}
+
+// check if smooth game element movements selected in setup menu
+boolean use_bd_smooth_movements(void)
+{
+  return ((setup.bd_smooth_movements == TRUE) ||
+         (setup.bd_smooth_movements == AUTO && !use_native_bd_graphics_engine()));
+}
+
 Bitmap **GetTitleScreenBitmaps_BD(void)
 {
   Bitmap **title_screen_bitmaps = gd_get_title_screen_bitmaps();