mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-18 05:07:09 -04:00
Extend the locomotion state-change detection to include the WALKING movement flag. Previously a creature that switched from walking to running (or vice versa) while staying in the moving state would keep playing the wrong animation because only the moving/idle transition was tracked. Add creatureWasWalking_ alongside creatureWasSwimming_ and creatureWasFlying_; guard the walking check with isMovingNow to avoid spurious triggers when the flag flips while the creature is idle. Clear and erase the new map at world reset and creature/player despawn.