Production now uses nearest exit to rally point.

This commit is contained in:
abcdefg30
2020-10-24 11:36:59 +02:00
committed by Paul Chote
parent 38f1f1e5c2
commit f5a963ac47
4 changed files with 11 additions and 11 deletions

View File

@@ -86,7 +86,7 @@ namespace OpenRA.Mods.Common.Scripting
if (rp.Path.Count > 0)
return rp.Path.Last();
var exit = Self.FirstExitOrDefault();
var exit = Self.NearestExitOrDefault(Self.CenterPosition);
if (exit != null)
return Self.Location + exit.Info.ExitCell;