Remove unused movement class bit set.

This commit is contained in:
Matthias Mailänder
2024-08-30 19:00:01 +02:00
committed by abcdefg30
parent a79b449fb2
commit 25dd0508c2

View File

@@ -145,7 +145,6 @@ namespace OpenRA.Mods.Common.Traits
}
public readonly LocomotorInfo Info;
public readonly uint MovementClass;
/// <summary>
/// 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++)
if (!info.TerrainSpeeds.TryGetValue(terrainInfo.TerrainTypes[i].Type, out terrainInfos[i]))
terrainInfos[i] = LocomotorInfo.TerrainInfo.Impassable;
MovementClass = (uint)terrainInfos.Select(ti => ti.Cost != PathGraph.MovementCostForUnreachableCell).ToBits();
}
public short MovementCostForCell(CPos cell)