Fix initial Wanders delay

The previous 'fix' was apparently incomplete. This time it has been properly tested and works as intended.
This commit is contained in:
reaperrr
2016-06-25 12:29:00 +02:00
parent a421a191b5
commit 46ca650324

View File

@@ -55,9 +55,10 @@ namespace OpenRA.Mods.Common.Traits
public virtual void TickIdle(Actor self)
{
// The countdown has not have been set at this point, so don't check yet
// OnBecomingIdle has not been called yet at this point, so set the initial countdown here
if (firstTick)
{
countdown = self.World.SharedRandom.Next(info.MinMoveDelay, info.MaxMoveDelay);
firstTick = false;
return;
}