HomeWildfire Games

Fix rP22367, make units again properly hunt animals that died in FoW.

Description

Fix rP22367, make units again properly hunt animals that died in FoW.

The reason was that the unit immediately tried gathering nearby instead of going to the unit's last known position.

Related to D1997.

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

Event Timeline

elexis raised a concern with this commit.Jul 1 2019, 1:59 PM
elexis added a subscriber: elexis.

Error: ReferenceError
Reproduce: Run the committed code.

This commit now has outstanding concerns.Jul 1 2019, 1:59 PM
elexis removed an auditor: elexis.Jul 1 2019, 9:40 PM

(error was)

ERROR: Error in timer on entity 7087, IID96, function TimerHandler: ReferenceError: target is not defined
  UnitAI.prototype.UnitFsmSpec.INDIVIDUAL.GATHER.GATHERING.Timer@simulation/components/UnitAI.js:2224:12
  FSM.prototype.ProcessMessage@simulation/helpers/FSM.js:265:12
  UnitAI.prototype.TimerHandler@simulation/components/UnitAI.js:3739:2
  Timer.prototype.OnUpdate@simulation/components/Timer.js:120:4
This commit no longer requires audit.Jul 1 2019, 9:40 PM