From d44b582de43d0e120cb225009a378cc08400080a Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 28 May 2020 18:30:09 +0200 Subject: [PATCH] moved correcting playfield buffer sound position to EM engine --- src/game.c | 3 --- src/game_em/init.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/game.c b/src/game.c index 14c652b7..9e0327a4 100644 --- a/src/game.c +++ b/src/game.c @@ -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: diff --git a/src/game_em/init.c b/src/game_em/init.c index 70da7982..0486f87b 100644 --- a/src/game_em/init.c +++ b/src/game_em/init.c @@ -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) -- 2.34.1