From: Holger Schemel Date: Tue, 8 Feb 2022 16:54:51 +0000 (+0100) Subject: minor code cleanup X-Git-Tag: 4.3.1.1^0 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b0ce25e027f24575ed4be96a7884a83cf63133fb;p=rocksndiamonds.git minor code cleanup --- 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)