X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=5e5a2e1d01708640a63511faab85a617e596d843;hb=97849fee52785abc83312cb229cb481eeb530b6b;hp=fbfb601af898908d12a8b5d1f2ee7ae255e7c5e5;hpb=3ca52442121dc311d2ead0dbf3b366ea367fcdeb;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index fbfb601a..5e5a2e1d 100644 --- a/src/tools.c +++ b/src/tools.c @@ -9427,6 +9427,17 @@ int getGraphicInfo_Delay(int graphic) return graphic_info[graphic].anim_delay; } +boolean getGraphicInfo_NewFrame(int x, int y, int graphic) +{ + if (!IS_NEW_FRAME(GfxFrame[x][y], graphic)) + return FALSE; + + if (ANIM_MODE(graphic) & (ANIM_TILED | ANIM_RANDOM_STATIC)) + return FALSE; + + return TRUE; +} + void PlayMenuSoundExt(int sound) { if (sound == SND_UNDEFINED)