X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;fp=src%2Ftools.c;h=9fe777c90e0f0b180ff7c6ea1936f83176fb11ae;hp=6a998afb360639bb7611ac472c06ff6b0c7bf497;hb=8fe5772614b88c44ecfba69086459a76a7b1cf30;hpb=b71e46505e5e3dc2213e67124dd1d245ca7a2cbb diff --git a/src/tools.c b/src/tools.c index 6a998afb..9fe777c9 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1506,7 +1506,9 @@ int getGraphicAnimationFrameXY(int graphic, int lx, int ly) return sync_frame % g->anim_frames; } - return getGraphicAnimationFrame(graphic, GfxFrame[lx][ly]); + int sync_frame = (IN_LEV_FIELD(lx, ly) ? GfxFrame[lx][ly] : -1); + + return getGraphicAnimationFrame(graphic, sync_frame); } void getGraphicSourceBitmap(int graphic, int tilesize, Bitmap **bitmap)