1
0
forked from mirrors/0ad

Fix units getting stuck inside foundations

This was SVN commit r9035.
This commit is contained in:
Ykkrosh
2011-03-05 22:18:29 +00:00
parent 52d767a404
commit 20ebaa5b79
@@ -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 });
};