X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=328ad13e2188ee8aabc5328a4ea30452a4d1f0f5;hb=632b8ce3e7c946dc6d5e9d1f93a1a8dcb38e510c;hp=8ed62a521b36a2fbc2fefd7ceeadf38f710e9ae1;hpb=c38b8938950533926b72af227c38513fe665a8f6;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 8ed62a52..328ad13e 100644 --- a/src/tools.c +++ b/src/tools.c @@ -770,7 +770,8 @@ void DrawPlayer(struct PlayerInfo *player) void DrawGraphicAnimationExt(int x, int y, int graphic, int mask_mode) { - if (IN_SCR_FIELD(x, y)) + if (IN_SCR_FIELD(x, y) && + (FrameCounter % new_graphic_info[graphic].anim_delay) == 0) { int frame = getGraphicAnimationFrame(graphic, -1);