Ensure units don't move while gathering. fixes #835

This was SVN commit r9501.
This commit is contained in:
Badmadblacksad 2011-05-11 19:34:39 +00:00
parent b96a3f74c2
commit 8a434aae1b

View File

@ -671,6 +671,7 @@ var UnitFsmSpec = {
// off to a different target.)
if (this.CheckTargetRange(this.order.data.target, IID_ResourceGatherer))
{
this.StopMoving();
var typename = "gather_" + this.order.data.type.specific;
this.SelectAnimation(typename, false, 1.0, typename);
}