code cleanup
authorHolger Schemel <info@artsoft.org>
Wed, 2 Nov 2022 14:20:07 +0000 (15:20 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 2 Nov 2022 14:20:07 +0000 (15:20 +0100)
src/game_mm/mm_tools.c

index 1f23bc902c0114420e544d7ed68635a391cb98a1..2c34884abb7dd4d2ece638e99062a4044ccd6188 100644 (file)
@@ -1289,13 +1289,7 @@ static int map_element(int element)
 
 int el2gfx(int element)
 {
-  element = map_element(element);
-
-  switch (element)
-  {
-    default:
-      return el2img_mm(element);
-  }
+  return el2img_mm(map_element(element));
 }
 
 void RedrawPlayfield_MM(void)