From: Holger Schemel Date: Thu, 28 May 2020 13:58:49 +0000 (+0200) Subject: removed checks for (unused) border element for EM engine X-Git-Tag: 4.2.0.0~32 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=a59bf77ffaf07516895cb04b5a659544eeb8d9f2 removed checks for (unused) border element for EM engine --- 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; }