added a random delay before repathing (tunable per-unittype in Mobile). fixes a lot of pathological pathing perf.

This commit is contained in:
Chris Forbes
2010-03-07 17:49:12 +13:00
parent 2547045881
commit a303299bbb
3 changed files with 17 additions and 1 deletions

View File

@@ -26,6 +26,8 @@ namespace OpenRA.Traits
public class MobileInfo : ITraitInfo
{
public readonly UnitMovementType MovementType = UnitMovementType.Wheel;
public readonly int WaitAverage = 60;
public readonly int WaitSpread = 20;
public object Create(Actor self) { return new Mobile(self); }
}