added function to map editor elements to game elements for MM wall elements
authorHolger Schemel <info@artsoft.org>
Mon, 6 Mar 2017 17:29:25 +0000 (18:29 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:09 +0000 (23:21 +0100)
src/tools.c
src/tools.h

index 3dd167c7ce84f5e8cb200bda990cc006cc7542c8..a51f2f690e8909ac8d327b7dda93d2b480b06869 100644 (file)
@@ -7365,6 +7365,21 @@ int map_mm_wall_element(int element)
          element);
 }
 
+int map_mm_wall_element_editor(int element)
+{
+  switch (element)
+  {
+    case EL_MM_STEEL_WALL:     return EL_MM_STEEL_WALL_START;
+    case EL_MM_WOODEN_WALL:    return EL_MM_WOODEN_WALL_START;
+    case EL_MM_ICE_WALL:       return EL_MM_ICE_WALL_START;
+    case EL_MM_AMOEBA_WALL:    return EL_MM_AMOEBA_WALL_START;
+    case EL_DF_STEEL_WALL:     return EL_DF_STEEL_WALL_START;
+    case EL_DF_WOODEN_WALL:    return EL_DF_WOODEN_WALL_START;
+
+    default:                   return element;
+  }
+}
+
 int get_next_element(int element)
 {
   switch (element)
index 7af465eb5461c1b861ab443b68d416614d3c632a..6deb4057b5e5924b2ab65b0167d1479c24601bbf 100644 (file)
@@ -222,6 +222,7 @@ int map_action_SP_to_RND(int);
 int map_element_RND_to_MM(int);
 int map_element_MM_to_RND(int);
 int map_mm_wall_element(int);
+int map_mm_wall_element_editor(int);
 
 int get_next_element(int);
 int el_act_dir2img(int, int, int);