From 38e1d409ffb08b2977c5b8967e7afe974adac3b6 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Fri, 24 Jun 2016 16:36:04 +0200 Subject: [PATCH] Make Wanders.TickIdle virtual So inheriting traits can override it. --- OpenRA.Mods.Common/Traits/Wanders.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Wanders.cs b/OpenRA.Mods.Common/Traits/Wanders.cs index aa901add55..b8ec03010c 100644 --- a/OpenRA.Mods.Common/Traits/Wanders.cs +++ b/OpenRA.Mods.Common/Traits/Wanders.cs @@ -53,7 +53,7 @@ namespace OpenRA.Mods.Common.Traits countdown = self.World.SharedRandom.Next(info.MinMoveDelay, info.MaxMoveDelay); } - public void TickIdle(Actor self) + public virtual void TickIdle(Actor self) { // The countdown has not have been set at this point, so don't check yet if (firstTick)