Remove unused movement class bit set.
This commit is contained in:
committed by
abcdefg30
parent
a79b449fb2
commit
25dd0508c2
@@ -145,7 +145,6 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
}
|
}
|
||||||
|
|
||||||
public readonly LocomotorInfo Info;
|
public readonly LocomotorInfo Info;
|
||||||
public readonly uint MovementClass;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raised when the movement cost for a cell changes, providing the old and new costs.
|
/// Raised when the movement cost for a cell changes, providing the old and new costs.
|
||||||
@@ -173,8 +172,6 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
for (var i = 0; i < terrainInfos.Length; i++)
|
for (var i = 0; i < terrainInfos.Length; i++)
|
||||||
if (!info.TerrainSpeeds.TryGetValue(terrainInfo.TerrainTypes[i].Type, out terrainInfos[i]))
|
if (!info.TerrainSpeeds.TryGetValue(terrainInfo.TerrainTypes[i].Type, out terrainInfos[i]))
|
||||||
terrainInfos[i] = LocomotorInfo.TerrainInfo.Impassable;
|
terrainInfos[i] = LocomotorInfo.TerrainInfo.Impassable;
|
||||||
|
|
||||||
MovementClass = (uint)terrainInfos.Select(ti => ti.Cost != PathGraph.MovementCostForUnreachableCell).ToBits();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public short MovementCostForCell(CPos cell)
|
public short MovementCostForCell(CPos cell)
|
||||||
|
|||||||
Reference in New Issue
Block a user