From: Holger Schemel Date: Thu, 28 May 2020 16:30:09 +0000 (+0200) Subject: moved correcting playfield buffer sound position to EM engine X-Git-Tag: 4.2.0.0~26 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=d44b582de43d0e120cb225009a378cc08400080a moved correcting playfield buffer sound position to EM engine --- 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)