X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;fp=src%2Ftools.c;h=4083e77ea1ba9733746632ceeb8bc2c1182dea0c;hp=3f551d63a01b630d6b195716c5d056307bae15eb;hb=c4cfe09e6e5db671cf17fa7e7689d3773255eca3;hpb=e3411dc963e8820b2e4f87ec5a16e263111fcc55 diff --git a/src/tools.c b/src/tools.c index 3f551d63..4083e77e 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1517,6 +1517,11 @@ void SetRandomAnimationValue(int x, int y) gfx.anim_random_frame = GfxRandom[x][y]; } +void SetAnimationFirstLevel(int first_level) +{ + gfx.anim_first_level = first_level; +} + int getGraphicAnimationFrame(int graphic, int sync_frame) { // animation synchronized with global frame counter, not move position