Skip to content

Commit

Permalink
Allow manual reset of STATE_ANIMATION_DONE even with single animation…
Browse files Browse the repository at this point in the history
… sprites
  • Loading branch information
TheRoboZ committed Aug 16, 2024
1 parent 0377311 commit efc2c87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sprite_eng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit efc2c87

Please sign in to comment.