From efc2c877a73351c5dd3b3c25b9d4d59cbfadd075 Mon Sep 17 00:00:00 2001 From: TheRoboZ Date: Fri, 16 Aug 2024 14:50:55 +0200 Subject: [PATCH] Allow manual reset of STATE_ANIMATION_DONE even with single animation sprites --- src/sprite_eng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sprite_eng.c b/src/sprite_eng.c index 640b6cf4..aaab5787 100644 --- a/src/sprite_eng.c +++ b/src/sprite_eng.c @@ -1042,6 +1042,7 @@ void SPR_setAnim(Sprite* sprite, s16 anim) sprite->status = (sprite->status & ~STATE_ANIMATION_DONE) | NEED_FRAME_UPDATE; } + else sprite->status = (sprite->status & ~STATE_ANIMATION_DONE); //to allow for manual reset of aniamtion done check even on single anim sprites END_PROFIL(PROFIL_SET_ANIM_FRAME) }