projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4df12da
)
fixed using masked elements when using element graphic for empty space
author
Holger Schemel
<info@artsoft.org>
Sat, 18 Nov 2023 15:55:35 +0000
(16:55 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sat, 18 Nov 2023 15:55:35 +0000
(16:55 +0100)
src/game.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index 51633eb17bac0a776424354fca73b6a7c642f46b..a7e05b85d23b6fa6362a4f3a55dea4cec40d225c 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-3973,6
+3973,10
@@
void InitGame(void)
InitBeltMovement();
+ // required if level does not contain any "empty space" element
+ if (element_info[EL_EMPTY].use_gfx_element)
+ game.use_masked_elements = TRUE;
+
for (i = 0; i < MAX_PLAYERS; i++)
{
struct PlayerInfo *player = &stored_player[i];