converted TileReference back into a value type; fixed BaseNormal handling in BIM

This commit is contained in:
Chris Forbes
2009-11-04 18:48:57 +13:00
parent a9126fc9ce
commit bb144db787
2 changed files with 12 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ using System.Text;
namespace OpenRa.FileFormats
{
public class TileReference
public struct TileReference
{
public ushort tile;
public byte image;

View File

@@ -48,6 +48,17 @@ namespace OpenRa.Game
++initialTileCount;
}
if (!((UnitInfo.BuildingInfo)a.unitInfo).BaseNormal)
{
while (!pq.Empty)
{
var c = pq.Pop();
influence[c.location.X, c.location.Y].First = c.actor;
influence[c.location.X, c.location.Y].Second = 0;
}
return;
}
Log.Write("Recalculating voronoi region for {{ {0} ({1},{2}) }}: {3} initial tiles",
a.unitInfo.Name, a.Location.X, a.Location.Y, initialTileCount);