moved correcting playfield buffer sound position to EM engine
authorHolger Schemel <info@artsoft.org>
Thu, 28 May 2020 16:30:09 +0000 (18:30 +0200)
committerHolger Schemel <info@artsoft.org>
Thu, 28 May 2020 16:30:09 +0000 (18:30 +0200)
src/game.c
src/game_em/init.c

index 14c652b7dc98b2c0c40dbc788279fcec206b385d..9e0327a491eac158a6907012e052b900287183eb 100644 (file)
@@ -14856,9 +14856,6 @@ void PlayLevelSound_EM(int xx, int yy, int element_em, int sample)
   int x = xx - offset;
   int y = yy - offset;
 
-  x = correctLevelPosX_EM(x);
-  y = correctLevelPosY_EM(y);
-
   switch (sample)
   {
     case SOUND_blank:
index 70da7982cd8159f441c8a7b926ede395ea1f93cc..0486f87b295fcf7a075b4ecc68bf881eda809f40 100644 (file)
@@ -63,7 +63,7 @@ void em_close_all(void)
 
 void play_element_sound(int x, int y, int sample, int element)
 {
-  PlayLevelSound_EM(x, y, element, sample);
+  PlayLevelSound_EM(CAVE_POS_X(x), CAVE_POS_Y(y), element, sample);
 }
 
 void play_sound(int x, int y, int sample)