fix AI error, the freeze of this collection prevented promoted and packed units to be updated during attack

This was SVN commit r14793.
This commit is contained in:
mimo 2014-03-01 09:35:30 +00:00
parent 4e5eeba27b
commit 57e995e618

View File

@ -695,7 +695,6 @@ m.CityAttack.prototype.StartAttack = function(gameState, HQ){
this.unitCollection.forEach(function(ent) { ent.setMetadata(PlayerID, "subrole", "walking"); ent.setMetadata(PlayerID, "role", "attack") ;});
// optimize our collection now.
this.unitCollection.freeze();
this.unitCollection.allowQuickIter();
this.unitCollection.move(this.path[0][0][0], this.path[0][0][1]);