From a59bf77ffaf07516895cb04b5a659544eeb8d9f2 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 28 May 2020 15:58:49 +0200 Subject: [PATCH] removed checks for (unused) border element for EM engine --- src/game.c | 2 +- src/tools.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/game.c b/src/game.c index 4f7f6137..f366a368 100644 --- a/src/game.c +++ b/src/game.c @@ -14858,7 +14858,7 @@ static void PlayLevelMusic(void) 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 = (BorderElement == EL_STEELWALL ? 1 : 0); + int offset = 0; int x = xx - 1 - offset; int y = yy - 1 - offset; diff --git a/src/tools.c b/src/tools.c index b4a60378..5513a17f 100644 --- a/src/tools.c +++ b/src/tools.c @@ -196,7 +196,6 @@ static char *print_if_not_empty(int element) int correctLevelPosX_EM(int lx) { lx -= 1; - lx -= (BorderElement != EL_EMPTY ? 1 : 0); return lx; } @@ -204,7 +203,6 @@ int correctLevelPosX_EM(int lx) int correctLevelPosY_EM(int ly) { ly -= 1; - ly -= (BorderElement != EL_EMPTY ? 1 : 0); return ly; } -- 2.34.1