projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11cc668
)
removed checks for (unused) border element for EM engine
author
Holger Schemel
<info@artsoft.org>
Thu, 28 May 2020 13:58:49 +0000
(15:58 +0200)
committer
Holger Schemel
<info@artsoft.org>
Thu, 28 May 2020 14:48:39 +0000
(16:48 +0200)
src/game.c
patch
|
blob
|
history
src/tools.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index 4f7f613787a791e589a81ae3c838ea8920d300f4..f366a36823529583faf4d0e570c77d3080410d4a 100644
(file)
--- 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 b4a603787c290b06afc0d2f28cef796741893774..5513a17f436ef330c70aa8527f788dfb4061e045 100644
(file)
--- 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;
}