I've simplified much of the worker movement code this week, as i've been trying to track down an odd movement issue. There were several code paths, that if they failed in a certain order could put a droid in an incorrect movement function, with incorrect destination.
As the game has been several years in development, the code was far too complex. I'm hoping making things simpler, removing similar functions, will help with these issues. Plus going forward, it should be easier to add to / improve and any further issues should be easier to solve.
Do let me know if you see any movement issues, i'll be keeping an eye of the forums this weekend, whilst i also do some more testing.
If all well, i'll be back working on the heat addition, next week. These last couple of issues have delayed me a week or two with this, so sorry about that.
Patch notes:-
- Improve: Add EndPath to clear path info at destination.
- Improve: Emergency checks that interrupt paths, use SetIdlePath.
- Improve: Job no longer exists checks that interrupt paths, use SetIdlePath.
- Fix: Set stopped, not always clearing path, as path assigned could be already false.
- Fix: Set charge point, could set status, but path could fail.
- Fix: Moving check, needs to test path or nonpath movement, and path_block if path type.
Nick
