Merge pull request #6698 from RoosterDragon/memory-savings

Small memory savings
This commit is contained in:
Paul Chote
2014-10-12 11:43:08 +13:00
15 changed files with 79 additions and 82 deletions

View File

@@ -117,7 +117,7 @@ namespace OpenRA.Mods.RA
self.World.Map.CustomTerrain[c] = GetTerrainType(c);
}
int GetTerrainType(CPos cell)
byte GetTerrainType(CPos cell)
{
var dx = cell - self.Location;
var index = dx.X + self.World.TileSet.Templates[template].Size.X * dx.Y;