From 38c98f98f536b80d9f8f2af263e2f22825ab5b2b Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 28 May 2020 18:32:04 +0200 Subject: [PATCH] removed functions for correcting playfield buffer position for EM engine --- src/game_em/export.h | 3 --- src/game_em/init.c | 14 -------------- 2 files changed, 17 deletions(-) diff --git a/src/game_em/export.h b/src/game_em/export.h index 37e11e1a..4766101b 100644 --- a/src/game_em/export.h +++ b/src/game_em/export.h @@ -105,9 +105,6 @@ void InitGfxBuffers_EM(void); void InitGameEngine_EM(void); void GameActions_EM(byte *, boolean); -int correctLevelPosX_EM(int); -int correctLevelPosY_EM(int); - unsigned int InitEngineRandom_EM(int); void setLevelInfoToDefaults_EM(void); diff --git a/src/game_em/init.c b/src/game_em/init.c index 0486f87b..b2a396df 100644 --- a/src/game_em/init.c +++ b/src/game_em/init.c @@ -71,20 +71,6 @@ void play_sound(int x, int y, int sample) play_element_sound(x, y, sample, -1); } -int correctLevelPosX_EM(int lx) -{ - lx -= lev.left; - - return lx; -} - -int correctLevelPosY_EM(int ly) -{ - ly -= lev.top; - - return ly; -} - unsigned int InitEngineRandom_EM(int seed) { if (seed == NEW_RANDOMIZE) -- 2.34.1