zkat / big-brain

Utility AI library for the Bevy game engine
Other
1.04k stars 62 forks source link

Include actions in Init state when cancelling steps #95

Closed squimmy closed 7 months ago

squimmy commented 7 months ago

This fixes an issue that causes the action to get "stuck" if an action is cancelled while in the Init state.

I think my understanding of the issue is incomplete because I wasn't able to write a test for the fix, but this does solve the problem I was having in my game where actors with large and complex Thinkers would occasionally and unpredictably get stuck and stop acting.