Move CellCorners to MapGrid.

This commit is contained in:
Paul Chote
2016-02-05 08:13:46 +00:00
parent ddea517b19
commit 626fa0b60b
4 changed files with 54 additions and 52 deletions

View File

@@ -141,7 +141,7 @@ namespace OpenRA.Graphics
ramp = ti.RampType;
}
var corners = map.CellCorners[ramp];
var corners = map.Grid.CellCorners[ramp];
var pos = map.CenterOfCell(uv.ToCPos(map));
var screen = corners.Select(c => worldRenderer.ScreenPxPosition(pos + c)).ToArray();