converted TileReference back into a value type; fixed BaseNormal handling in BIM
This commit is contained in:
@@ -4,7 +4,7 @@ using System.Text;
|
|||||||
|
|
||||||
namespace OpenRa.FileFormats
|
namespace OpenRa.FileFormats
|
||||||
{
|
{
|
||||||
public class TileReference
|
public struct TileReference
|
||||||
{
|
{
|
||||||
public ushort tile;
|
public ushort tile;
|
||||||
public byte image;
|
public byte image;
|
||||||
|
|||||||
@@ -48,6 +48,17 @@ namespace OpenRa.Game
|
|||||||
++initialTileCount;
|
++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",
|
Log.Write("Recalculating voronoi region for {{ {0} ({1},{2}) }}: {3} initial tiles",
|
||||||
a.unitInfo.Name, a.Location.X, a.Location.Y, initialTileCount);
|
a.unitInfo.Name, a.Location.X, a.Location.Y, initialTileCount);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user