mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 03:06:29 +00:00
Fix units idling after unable to garrison while there are rally points.
When unable to garrison and that is the first rally point, the rest of
the rally point queue is not handled.
The check was introduced in df1d5d2260 because UnitAI didn't guard
garrisoning properly.
Patch by: @Langbart
Differential revision: https://code.wildfiregames.com/D4954
Fixes #6746
This was SVN commit r27560.
This commit is contained in:
@@ -293,7 +293,7 @@ Trainer.prototype.Item.prototype.Spawn = function()
|
||||
createdEnts.push(ent);
|
||||
}
|
||||
|
||||
if (spawnedEnts.length && !autoGarrison && cmpRallyPoint)
|
||||
if (spawnedEnts.length && cmpRallyPoint)
|
||||
for (const com of GetRallyPointCommands(cmpRallyPoint, spawnedEnts))
|
||||
ProcessCommand(this.player, com);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user