mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Give some explanation to my change in 0c336649e6
This was SVN commit r14548.
This commit is contained in:
parent
0c336649e6
commit
641c65b1dd
1 changed files with 3 additions and 0 deletions
|
|
@ -2604,6 +2604,9 @@ var UnitFsmSpec = {
|
|||
|
||||
var cmpBuilder = Engine.QueryInterface(this.entity, IID_Builder);
|
||||
cmpBuilder.PerformBuilding(this.repairTarget);
|
||||
// if the building is completed, the leave() function will be called
|
||||
// by the ConstructionFinished message
|
||||
// in that case, the repairTarget is deleted, and we can just return
|
||||
if (!this.repairTarget)
|
||||
return;
|
||||
if (this.MoveToTargetRange(this.repairTarget, IID_Builder))
|
||||
|
|
|
|||
Loading…
Reference in a new issue