projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed android cloning additional empty space elements
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index bf79b048d344368bf064bbc992bf98a18c4cf301..ebcb47305133d67876d167c04b9d604aa6e40ff8 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-1996,6
+1996,9
@@
void DrawScreenElementExt(int x, int y, int dx, int dy, int element,
int graphic;
int frame;
int graphic;
int frame;
+ if (element == EL_EMPTY)
+ element = GfxElementEmpty[lx][ly];
+
if (IN_LEV_FIELD(lx, ly))
{
SetRandomAnimationValue(lx, ly);
if (IN_LEV_FIELD(lx, ly))
{
SetRandomAnimationValue(lx, ly);
@@
-3957,6
+3960,9
@@
void DrawLevelGraphicAnimationIfNeeded(int x, int y, int graphic)
if (!IN_LEV_FIELD(x, y) || !IN_SCR_FIELD(sx, sy))
return;
if (!IN_LEV_FIELD(x, y) || !IN_SCR_FIELD(sx, sy))
return;
+ if (Tile[x][y] == EL_EMPTY)
+ graphic = el2img(GfxElementEmpty[x][y]);
+
if (!IS_NEW_FRAME(GfxFrame[x][y], graphic))
return;
if (!IS_NEW_FRAME(GfxFrame[x][y], graphic))
return;