Added support for filtering exits by production type.
This commit is contained in:
@@ -80,7 +80,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
}
|
||||
}
|
||||
|
||||
var exit = dest.Info.TraitInfos<ExitInfo>().FirstOrDefault();
|
||||
var exit = dest.Info.FirstExitOrDefault(null);
|
||||
var offset = (exit != null) ? exit.SpawnOffset : WVec.Zero;
|
||||
|
||||
if (ShouldLandAtBuilding(self, dest))
|
||||
|
||||
Reference in New Issue
Block a user