Add support for diamond cell grids.

This commit is contained in:
Paul Chote
2014-06-30 11:25:39 +12:00
parent af0e948a67
commit a30c8b53a7
11 changed files with 191 additions and 82 deletions

View File

@@ -287,7 +287,7 @@ namespace OpenRA.Mods.RA.Move
while (CellInfoPool.Count > 0)
{
var cellInfo = GetFromPool();
if (cellInfo.Size != mapSize)
if (cellInfo.Size != mapSize || cellInfo.Shape != self.World.Map.TileShape)
{
Log.Write("debug", "Discarding old pooled CellInfo of wrong size.");
continue;