Convert bridges to world coordinates.

This commit is contained in:
Paul Chote
2013-05-16 00:35:09 +12:00
parent 57142fbb8d
commit 85056e1c6c
2 changed files with 3 additions and 1 deletions

View File

@@ -43,6 +43,8 @@ namespace OpenRA
public int2 ToInt2() { return new int2(X, Y); }
public PPos ToPPos() { return new PPos(Game.CellSize * X, Game.CellSize * Y); }
public WPos CenterPosition { get { return new WPos(1024*X + 512, 1024*Y + 512, 0); } }
public CPos Clamp(Rectangle r)
{
return new CPos(Math.Min(r.Right, Math.Max(X, r.Left)),