diff --git a/OpenRa.DataStructures/int2.cs b/OpenRa.DataStructures/int2.cs index 1083173118..82a00c956e 100644 --- a/OpenRa.DataStructures/int2.cs +++ b/OpenRa.DataStructures/int2.cs @@ -43,5 +43,7 @@ namespace OpenRa public Point ToPoint() { return new Point(X, Y); } public PointF ToPointF() { return new PointF(X, Y); } public float2 ToFloat2() { return new float2(X, Y); } + + public override string ToString() { return string.Format("({0},{1})", X, Y); } } } diff --git a/OpenRa.Game/Traits/Building.cs b/OpenRa.Game/Traits/Building.cs index c0793b55e8..0f6d7c4764 100644 --- a/OpenRa.Game/Traits/Building.cs +++ b/OpenRa.Game/Traits/Building.cs @@ -14,7 +14,7 @@ namespace OpenRa.Game.Traits bool first = true; public void Tick(Actor self) { - if (first && self.Owner == Game.LocalPlayer) + if (first) self.CenterLocation = Game.CellSize * (float2)self.Location + 0.5f * self.SelectedSize; first = false;