Aircraft can use friendly service depots/airfields/helipads
This commit is contained in:
committed by
Chris Forbes
parent
a5cfc20e0b
commit
b8b9d34404
@@ -165,7 +165,7 @@ namespace OpenRA.Mods.RA.Air
|
||||
|
||||
public bool AircraftCanEnter(Actor a)
|
||||
{
|
||||
if( self.Owner != a.Owner ) return false;
|
||||
if( self.AppearsHostileTo(a) ) return false;
|
||||
return Info.RearmBuildings.Contains( a.Info.Name )
|
||||
|| Info.RepairBuildings.Contains( a.Info.Name );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user