Merge pull request #9229 from pchote/fix-building-offsets

Fix TS building artwork offsets.
This commit is contained in:
Matthias Mailänder
2015-09-02 20:45:15 +02:00
2 changed files with 5 additions and 4 deletions

View File

@@ -65,7 +65,8 @@ namespace OpenRA.Mods.Common.Traits
public static WVec CenterOffset(World w, BuildingInfo buildingInfo)
{
var dim = buildingInfo.Dimensions;
return (w.Map.CenterOfCell(CPos.Zero + new CVec(dim.X, dim.Y)) - w.Map.CenterOfCell(new CPos(1, 1))) / 2;
var off = (w.Map.CenterOfCell(new CPos(dim.X, dim.Y)) - w.Map.CenterOfCell(new CPos(1, 1))) / 2;
return off - new WVec(0, 0, off.Z);
}
}
}