From: Holger Schemel Date: Thu, 28 May 2020 16:23:18 +0000 (+0200) Subject: fixed correcting playfield buffer offsets for EM engine X-Git-Tag: 4.2.0.0~28 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=527df81530ed2ddb9063bcd1575fa8f562aa6237 fixed correcting playfield buffer offsets for EM engine --- diff --git a/src/game_em/init.c b/src/game_em/init.c index bd9cbc85..70da7982 100644 --- a/src/game_em/init.c +++ b/src/game_em/init.c @@ -73,14 +73,14 @@ void play_sound(int x, int y, int sample) int correctLevelPosX_EM(int lx) { - lx -= 1; + lx -= lev.left; return lx; } int correctLevelPosY_EM(int ly) { - ly -= 1; + ly -= lev.top; return ly; }