projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be4120e
)
minor code cleanup
4.3.1.1
author
Holger Schemel
<info@artsoft.org>
Tue, 8 Feb 2022 16:54:51 +0000
(17:54 +0100)
committer
Holger Schemel
<info@artsoft.org>
Tue, 8 Feb 2022 16:54:51 +0000
(17:54 +0100)
src/tools.c
patch
|
blob
|
history
diff --git
a/src/tools.c
b/src/tools.c
index c849dd3fe0b25bc49ce71a0ef3b6789ee6000972..144bce2afeb7dc36852b81bc32cb66192fe3b405 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-1507,10
+1507,12
@@
int getGraphicAnimationFrameXY(int graphic, int lx, int ly)
return sync_frame % g->anim_frames;
}
+ else
+ {
+ int sync_frame = (IN_LEV_FIELD(lx, ly) ? GfxFrame[lx][ly] : -1);
- int sync_frame = (IN_LEV_FIELD(lx, ly) ? GfxFrame[lx][ly] : -1);
-
- return getGraphicAnimationFrame(graphic, sync_frame);
+ return getGraphicAnimationFrame(graphic, sync_frame);
+ }
}
void getGraphicSourceBitmap(int graphic, int tilesize, Bitmap **bitmap)