From b6ffcb827944515436a3a8232b75b9a6503b631c Mon Sep 17 00:00:00 2001 From: atlimit8 Date: Tue, 8 Sep 2015 23:17:17 -0500 Subject: [PATCH] Add WDist.MaxValue --- OpenRA.Game/WDist.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRA.Game/WDist.cs b/OpenRA.Game/WDist.cs index ab4f0f1c9e..cbebdd45a1 100644 --- a/OpenRA.Game/WDist.cs +++ b/OpenRA.Game/WDist.cs @@ -27,6 +27,7 @@ namespace OpenRA public WDist(int r) { Length = r; } public static readonly WDist Zero = new WDist(0); + public static readonly WDist MaxValue = new WDist(int.MaxValue); public static WDist FromCells(int cells) { return new WDist(1024 * cells); } public static WDist operator +(WDist a, WDist b) { return new WDist(a.Length + b.Length); }