From b0ce25e027f24575ed4be96a7884a83cf63133fb Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 8 Feb 2022 17:54:51 +0100 Subject: [PATCH] minor code cleanup --- src/tools.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) -- 2.34.1