X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=56822ab68a2736628fa308aec44e2e9adaa07b20;hb=9d7b311c097571c6eb4a810029400dbbc9267a90;hp=cfaa4ca2d93130fa1102e2a4fe16f2a357353f3c;hpb=9ea3a68945e6bc7ce3b6fd15b7ded06fd6c6ea59;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index cfaa4ca2..56822ab6 100644 --- a/src/tools.c +++ b/src/tools.c @@ -803,31 +803,17 @@ int getGraphicAnimationFrame(int graphic, int sync_frame) void DrawGraphicAnimationExt(int x, int y, int graphic, int mask_mode) { -#if 0 - int delay = new_graphic_info[graphic].anim_delay; - - if (!(FrameCounter % delay) && IN_SCR_FIELD(SCREENX(x), SCREENY(y))) -#else - if (IN_SCR_FIELD(SCREENX(x), SCREENY(y))) -#endif + if (IN_SCR_FIELD(x, y)) { int frame = getGraphicAnimationFrame(graphic, -1); if (mask_mode == USE_MASKING) - DrawGraphicThruMask(SCREENX(x), SCREENY(y), graphic, frame); + DrawGraphicThruMask(x, y, graphic, frame); else - DrawGraphic(SCREENX(x), SCREENY(y), graphic, frame); + DrawGraphic(x, y, graphic, frame); } } -#if 0 -void DrawOldGraphicAnimation(int x, int y, int graphic, - int frames, int delay, int mode) -{ - DrawGraphicAnimationExt(x, y, graphic, frames, delay, mode, NO_MASKING); -} -#endif - void DrawGraphicAnimation(int x, int y, int graphic) { DrawGraphicAnimationExt(x, y, graphic, NO_MASKING);