Make aircraft occupy cells when landed.
This commit is contained in:
@@ -213,7 +213,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
return false;
|
||||
}
|
||||
|
||||
return !IsEmpty(self) && (aircraft == null || aircraft.CanLand(self.Location))
|
||||
return !IsEmpty(self) && (aircraft == null || aircraft.CanLand(self.Location, self))
|
||||
&& CurrentAdjacentCells != null && CurrentAdjacentCells.Any(c => Passengers.Any(p => p.Trait<IPositionable>().CanEnterCell(c, null, immediate)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user