added using separate constants for tiles in EM engine caves and game logic
[rocksndiamonds.git] / src / game.c
index 888e1ebf0af64304339a0e2e48c41c2fa74c83a5..5164505efa8a7e7d0dd81b163095a7fd3335756e 100644 (file)
@@ -14706,7 +14706,7 @@ static void PlayLevelMusic(void)
 
 void PlayLevelSound_EM(int xx, int yy, int element_em, int sample)
 {
-  int element = (element_em > -1 ? map_element_EM_to_RND(element_em) : 0);
+  int element = (element_em > -1 ? map_element_EM_to_RND_game(element_em) : 0);
   int offset = (BorderElement == EL_STEELWALL ? 1 : 0);
   int x = xx - 1 - offset;
   int y = yy - 1 - offset;