X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;fp=src%2Ftools.c;h=144bce2afeb7dc36852b81bc32cb66192fe3b405;hp=c849dd3fe0b25bc49ce71a0ef3b6789ee6000972;hb=b0ce25e027f24575ed4be96a7884a83cf63133fb;hpb=be4120e388ba1c192713e675144136ea644fa712 diff --git a/src/tools.c b/src/tools.c index c849dd3f..144bce2a 100644 --- 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)