fixed conveyor belt direction switch names for BD engine
authorHolger Schemel <info@artsoft.org>
Fri, 22 Mar 2024 10:06:54 +0000 (11:06 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 22 Mar 2024 10:06:54 +0000 (11:06 +0100)
src/conf_gfx.c
src/editor.c
src/main.c
src/main.h
src/tools.c

index ae95ea37bf116adb9a100d7949fd43bd633200ed..6809677761986805dd6b52a9ee94642d92749768 100644 (file)
@@ -797,17 +797,17 @@ struct ConfigInfo image_config[] =
   { "bd_conveyor_switch.active.frames",                        "1"                             },
   { "bd_conveyor_switch.active.scale_up_factor",       "2"                             },
 
-  { "bd_conveyor_dir_switch_left",                     "boulder_rush.png"              },
-  { "bd_conveyor_dir_switch_left.xpos",                        "2"                             },
-  { "bd_conveyor_dir_switch_left.ypos",                        "44"                            },
-  { "bd_conveyor_dir_switch_left.frames",              "1"                             },
-  { "bd_conveyor_dir_switch_left.scale_up_factor",     "2"                             },
-
-  { "bd_conveyor_dir_switch_right",                    "boulder_rush.png"              },
-  { "bd_conveyor_dir_switch_right.xpos",               "1"                             },
-  { "bd_conveyor_dir_switch_right.ypos",               "44"                            },
-  { "bd_conveyor_dir_switch_right.frames",             "1"                             },
-  { "bd_conveyor_dir_switch_right.scale_up_factor",    "2"                             },
+  { "bd_conveyor_dir_switch_normal",                   "boulder_rush.png"              },
+  { "bd_conveyor_dir_switch_normal.xpos",              "1"                             },
+  { "bd_conveyor_dir_switch_normal.ypos",              "44"                            },
+  { "bd_conveyor_dir_switch_normal.frames",            "1"                             },
+  { "bd_conveyor_dir_switch_normal.scale_up_factor",   "2"                             },
+
+  { "bd_conveyor_dir_switch_changed",                  "boulder_rush.png"              },
+  { "bd_conveyor_dir_switch_changed.xpos",             "2"                             },
+  { "bd_conveyor_dir_switch_changed.ypos",             "44"                            },
+  { "bd_conveyor_dir_switch_changed.frames",           "1"                             },
+  { "bd_conveyor_dir_switch_changed.scale_up_factor",  "2"                             },
 
   { "bd_gravity_switch",                               "boulder_rush.png"              },
   { "bd_gravity_switch.xpos",                          "2"                             },
index ab2350d4a0ed6a3e6cec7695266a1753005d56eb..25853f868eea5dc67786bead6ee00b4cc0c90b72 100644 (file)
@@ -4872,7 +4872,7 @@ static int editor_el_boulderdash_native[] =
   EL_BD_CONVEYOR_LEFT,
   EL_BD_CONVEYOR_RIGHT,
   EL_BD_CONVEYOR_SWITCH,
-  EL_BD_CONVEYOR_DIR_SWITCH_RIGHT,
+  EL_BD_CONVEYOR_DIR_SWITCH_NORMAL,
 
   EL_BD_CLOCK,
   EL_BD_TIME_PENALTY,
index ba0e1802fd8cd30d077dc9079c69d3ee4bae3585..1bcd101e588e469ef9c6c91198d39455a589d3c0 100644 (file)
@@ -6803,14 +6803,14 @@ struct ElementNameInfo element_name_info[MAX_NUM_ELEMENTS + 1] =
     "Switch for conveyor belt (on)"
   },
   {
-    "bd_conveyor_dir_switch_left",
+    "bd_conveyor_dir_switch_normal",
     "bd_conveyor_dir_switch",
-    "Switch for conveyor belt direction (left)"
+    "Switch for conveyor belt direction (normal)"
   },
   {
-    "bd_conveyor_dir_switch_right",
+    "bd_conveyor_dir_switch_changed",
     "bd_conveyor_dir_switch",
-    "Switch for conveyor belt direction (right)"
+    "Switch for conveyor belt direction (changed)"
   },
   {
     "bd_gravity_switch",
index fdda65054a624fddbedde0f7b42ecf21af172ee9..f18bfb1dd7a50627358b18695be7b9212d9a3779 100644 (file)
 
 #define IS_BD_CONVEYOR_BELT_SWITCH(e)  ((e) == EL_BD_CONVEYOR_SWITCH ||                \
                                         (e) == EL_BD_CONVEYOR_SWITCH_ACTIVE ||         \
-                                        (e) == EL_BD_CONVEYOR_DIR_SWITCH_LEFT ||       \
-                                        (e) == EL_BD_CONVEYOR_DIR_SWITCH_RIGHT)
+                                        (e) == EL_BD_CONVEYOR_DIR_SWITCH_NORMAL ||     \
+                                        (e) == EL_BD_CONVEYOR_DIR_SWITCH_CHANGED)
 
 #define IS_SOKOBAN_OBJECT_OR_FIELD(e)  ((e) == EL_SOKOBAN_OBJECT ||            \
                                         (e) == EL_SOKOBAN_FIELD_EMPTY ||       \
 #define EL_BD_CONVEYOR_RIGHT_ACTIVE            1318
 #define EL_BD_CONVEYOR_SWITCH                  1319
 #define EL_BD_CONVEYOR_SWITCH_ACTIVE           1320
-#define EL_BD_CONVEYOR_DIR_SWITCH_LEFT         1321
-#define EL_BD_CONVEYOR_DIR_SWITCH_RIGHT                1322
+#define EL_BD_CONVEYOR_DIR_SWITCH_NORMAL       1321
+#define EL_BD_CONVEYOR_DIR_SWITCH_CHANGED      1322
 #define EL_BD_GRAVITY_SWITCH                   1323
 #define EL_BD_GRAVITY_SWITCH_ACTIVE            1324
 #define EL_BD_ACID                             1325
index 537a0e2174e860ad0cefe01ac9a70e8df5d374ae..2fdcd0b8c7c265ff93ba1cfd2b934df486e683e0 100644 (file)
@@ -6284,7 +6284,7 @@ bd_object_mapping_list[] =
   },
   {
     O_CONVEYOR_DIR_SWITCH,                     TRUE,
-    EL_BD_CONVEYOR_DIR_SWITCH_RIGHT,           -1, -1
+    EL_BD_CONVEYOR_DIR_SWITCH_NORMAL,          -1, -1
   },
   {
     O_ACID,                                    TRUE,
@@ -7031,11 +7031,11 @@ bd_object_mapping_list[] =
   },
   {
     O_CONVEYOR_DIR_NORMAL,                     FALSE,
-    EL_BD_CONVEYOR_DIR_SWITCH_RIGHT,           -1, -1
+    EL_BD_CONVEYOR_DIR_SWITCH_NORMAL,          -1, -1
   },
   {
     O_CONVEYOR_DIR_CHANGED,                    FALSE,
-    EL_BD_CONVEYOR_DIR_SWITCH_LEFT,            -1, -1
+    EL_BD_CONVEYOR_DIR_SWITCH_CHANGED,         -1, -1
   },
   {
     O_CONVEYOR_SWITCH_OFF,                     FALSE,