fixed correcting playfield buffer offsets for EM engine
authorHolger Schemel <info@artsoft.org>
Thu, 28 May 2020 16:23:18 +0000 (18:23 +0200)
committerHolger Schemel <info@artsoft.org>
Thu, 28 May 2020 16:23:18 +0000 (18:23 +0200)
src/game_em/init.c

index bd9cbc8576d1e751f38dbbc1d1a487c58c4b33a3..70da7982cd8159f441c8a7b926ede395ea1f93cc 100644 (file)
@@ -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;
 }