Make Wanders.TickIdle virtual
So inheriting traits can override it.
This commit is contained in:
@@ -53,7 +53,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
countdown = self.World.SharedRandom.Next(info.MinMoveDelay, info.MaxMoveDelay);
|
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
|
// The countdown has not have been set at this point, so don't check yet
|
||||||
if (firstTick)
|
if (firstTick)
|
||||||
|
|||||||
Reference in New Issue
Block a user