Commit Graph

2 Commits

Author SHA1 Message Date
Lephenixnoir e2ba1f51c2
fix animation transition issue for hit enemies
Transitioning to the `next` animation frame preserved the priority,
which was a problem for enemies with a next: Hit=Idle or similar
transition, as that would give an infinite Idle loop with high
priority.

This change forces a clear of the animation priority when such a
transition occurs. This relies on the flawed linked list system, which
means that it will not happen if the new animation is just after the
current one in the source file. This is a fundamental issue due to
mixing all frames as single pointers in the anim_t structure. This will
be fixed in engine code eventually.
2022-12-30 16:00:29 +01:00
Lephenixnoir 0b0a667ce0
add a sandbox level to test enemy behaviors 2022-05-21 18:54:22 +01:00