projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a59bf77
)
changed correcting playfield buffer position for EM engine
author
Holger Schemel
<info@artsoft.org>
Thu, 28 May 2020 15:15:19 +0000
(17:15 +0200)
committer
Holger Schemel
<info@artsoft.org>
Thu, 28 May 2020 15:15:19 +0000
(17:15 +0200)
src/game.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index f366a36823529583faf4d0e570c77d3080410d4a..08b787fdc83c4f489ddf25ad467ad780825c5347 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-14859,8
+14859,11
@@
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 = 0;
- int x = xx - 1 - offset;
- int y = yy - 1 - offset;
+ int x = xx - offset;
+ int y = yy - offset;
+
+ x = correctLevelPosX_EM(x);
+ y = correctLevelPosY_EM(y);
switch (sample)
{