Cache cell ramps to avoid repeated tileset lookups.
This commit is contained in:
@@ -83,9 +83,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (jli.JumpjetTransitionOnRamps)
|
||||
return true;
|
||||
|
||||
var tile = map.Tiles[cell];
|
||||
var ti = map.Rules.TileSet.GetTileInfo(tile);
|
||||
return ti == null || ti.RampType == 0;
|
||||
return map.Ramp[cell] == 0;
|
||||
}
|
||||
|
||||
int ICustomMovementLayer.EntryMovementCost(ActorInfo a, LocomotorInfo li, CPos cell)
|
||||
|
||||
Reference in New Issue
Block a user