Replace DomainIndex passability hack with Locomotor boolean

This commit is contained in:
reaperrr
2018-04-29 17:39:04 +02:00
committed by abcdefg30
parent 5364515004
commit e7fb32b09c
4 changed files with 7 additions and 2 deletions

View File

@@ -44,8 +44,7 @@ namespace OpenRA.Mods.Common.Traits
if (p1.Layer != 0 || p2.Layer != 0)
return true;
// HACK: Workaround until we can generalize movement classes
if (li is SubterraneanLocomotorInfo || li is JumpjetLocomotorInfo)
if (li.DisableDomainPassabilityCheck)
return true;
var movementClass = li.GetMovementClass(tileSet);