added using MM default action sound for unknown MM style elements
authorHolger Schemel <info@artsoft.org>
Tue, 4 Apr 2017 17:39:58 +0000 (19:39 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:12 +0000 (23:21 +0100)
src/game.c

index de844f4298ca0351fcaceab4ce88082c9c8402c7..5ff50a1f8e0cfbf5137e19ce8829957a58286c5d 100644 (file)
@@ -14703,6 +14703,9 @@ void PlayLevelSound_MM(int xx, int yy, int element_mm, int action_mm)
   int x = xx - offset;
   int y = yy - offset;
 
+  if (!IS_MM_ELEMENT(element))
+    element = EL_MM_DEFAULT;
+
   PlayLevelSoundElementAction(x, y, element, action);
 }