From a800fd1226ad32b109e098e95b3c79998253e571 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 28 May 2020 17:15:19 +0200 Subject: [PATCH] changed correcting playfield buffer position for EM engine --- src/game.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game.c b/src/game.c index f366a368..08b787fd 100644 --- a/src/game.c +++ b/src/game.c @@ -14859,8 +14859,11 @@ void PlayLevelSound_EM(int xx, int yy, int element_em, int sample) { int element = (element_em > -1 ? map_element_EM_to_RND_game(element_em) : 0); int offset = 0; - int x = xx - 1 - offset; - int y = yy - 1 - offset; + int x = xx - offset; + int y = yy - offset; + + x = correctLevelPosX_EM(x); + y = correctLevelPosY_EM(y); switch (sample) { -- 2.34.1