+static int map_element(int element)
+{
+ switch (element)
+ {
+ case EL_WALL_STEEL: return EL_STEEL_WALL;
+ case EL_WALL_WOOD: return EL_WOODEN_WALL;
+ case EL_WALL_ICE: return EL_ICE_WALL;
+ case EL_WALL_AMOEBA: return EL_AMOEBA_WALL;
+ case EL_DF_WALL_STEEL: return EL_DF_STEEL_WALL;
+ case EL_DF_WALL_WOOD: return EL_DF_WOODEN_WALL;
+
+ default: return element;
+ }
+}
+