HomeWildfire Games

Return Gathering to A23 behaviour - Make units try to gather near the target…

Description

Return Gathering to A23 behaviour - Make units try to gather near the target resource's position instead of their position.

Units were incorrectly looking at resources near their position following rP22342.

Fixes #5477.

Differential Revision: https://code.wildfiregames.com/D2034

Details

Committed
wraitiiJul 3 2019, 7:57 PM
Differential Revision
D2034: Return Gathering to A23 behaviour
Parents
rP22427: [Windows] Automated build.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 8179
Build 13324: Post-Commit BuildJenkins

Event Timeline

wraitii added inline comments.Jul 4 2019, 9:11 AM
/ps/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
2287

Needs a check for undefined herdPos or fixing why that sometimes is undefined. I thought it would always be defined, but it appears there are cases where it's not despite setting it in Gather and in Order.Gather - probably related to pushing new Gather orders or something.

wraitii added inline comments.Jul 14 2019, 10:08 AM
/ps/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
532

This erased the initPos too eagerly and should only be called if there is no initPos.