From: Holger Schemel Date: Thu, 28 May 2020 15:15:19 +0000 (+0200) Subject: changed correcting playfield buffer position for EM engine X-Git-Tag: 4.2.0.0~31 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a800fd1226ad32b109e098e95b3c79998253e571;p=rocksndiamonds.git changed correcting playfield buffer position for EM engine --- 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) {