mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Fix units getting stuck inside foundations
This was SVN commit r9035.
This commit is contained in:
parent
52d767a404
commit
20ebaa5b79
1 changed files with 6 additions and 0 deletions
|
|
@ -1826,6 +1826,12 @@ UnitAI.prototype.LeaveFoundation = function(target)
|
|||
// TODO: we should verify this is a friendly foundation, otherwise
|
||||
// there's no reason we should let them build here
|
||||
|
||||
// If we're already being told to leave a foundation, then
|
||||
// ignore this new request so we don't end up being too indecisive
|
||||
// to ever actually move anywhere
|
||||
if (this.order && this.order.type == "LeaveFoundation")
|
||||
return;
|
||||
|
||||
this.PushOrderFront("LeaveFoundation", { "target": target });
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue