Make Exit Conditional
This commit is contained in:
committed by
Paul Chote
parent
47c4be9191
commit
faa35946b8
@@ -89,8 +89,8 @@ namespace OpenRA.Mods.Common.Activities
|
||||
}
|
||||
}
|
||||
|
||||
var exit = dest.Info.FirstExitOrDefault(null);
|
||||
var offset = (exit != null) ? exit.SpawnOffset : WVec.Zero;
|
||||
var exit = dest.FirstExitOrDefault(null);
|
||||
var offset = exit != null ? exit.Info.SpawnOffset : WVec.Zero;
|
||||
|
||||
if (ShouldLandAtBuilding(self, dest))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user