HomeWildfire Games

Fix move speed not correctly reset when chasing a unit

Description

Fix move speed not correctly reset when chasing a unit

rP22197 had an issue where the move speed was not correctly reset after chasing a unit.

Reported By: Angen
Reviewed By: Angen

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

Event Timeline

Freagarach added inline comments.
/ps/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
2040

this.ResetSpeedMultiplier(); ?

Angen added a subscriber: Angen.May 13 2019, 9:17 PM
Angen added inline comments.
/ps/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
2040

yes, why ?

Freagarach added inline comments.
/ps/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
2040

I'm sorry, I need to be more verbose.
I was testing D1871 and I got an error stating that this.ResetMoveSpeed() is not a function, so I checked UnitAI.js and I think you meant this.ResetSpeedMultiplier(); ?

Sorry for the removed subscription, I don't know what happened,,,

Angen added inline comments.May 13 2019, 9:23 PM
/ps/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
2040

you need to rebuild game, there have been c++ changes, but yes @wraitii missed this line in another patch after this, thank you

Freagarach added inline comments.
/ps/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
2040

I already did rebuild it, but I missed rP22277 changed UnitAI.js as well, thanks for pointing out! Glad to be of service.