Skip to content

Commit 0fbd88a

Browse files
authored
Update height of units being built. Fixes #1241 (#1247)
1 parent f5ddf32 commit 0fbd88a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rts/Sim/Units/Unit.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,13 +1024,15 @@ void CUnit::SlowUpdate()
10241024
if (health <= 0.0f || buildProgress <= 0.0f)
10251025
KillUnit(nullptr, false, true, -CSolidObject::DAMAGE_CONSTRUCTION_DECAY);
10261026
}
1027+
moveType->SlowUpdate();
10271028

10281029
ScriptDecloak(nullptr, nullptr);
10291030
return;
10301031
}
10311032

1032-
// below is stuff that should not be run while being built
1033+
// should not be run while being built
10331034
commandAI->SlowUpdate();
1035+
10341036
moveType->SlowUpdate();
10351037

10361038

0 commit comments

Comments
 (0)