From 46ca6503243d6e7a108bb7e2b10750ed61f3b976 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sat, 25 Jun 2016 12:29:00 +0200 Subject: [PATCH] Fix initial Wanders delay The previous 'fix' was apparently incomplete. This time it has been properly tested and works as intended. --- OpenRA.Mods.Common/Traits/Wanders.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Wanders.cs b/OpenRA.Mods.Common/Traits/Wanders.cs index b8ec03010c..590aea9d09 100644 --- a/OpenRA.Mods.Common/Traits/Wanders.cs +++ b/OpenRA.Mods.Common/Traits/Wanders.cs @@ -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; }