Skip to content

Commit

Permalink
Fix losing progress on strategic missile launchers (FAForever#5880)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas authored Feb 6, 2024
1 parent 392648e commit fa0dda1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lua/sim/units/StructureUnit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -767,9 +767,13 @@ StructureUnit = ClassUnit(Unit) {
local progress = adjacentUnit:GetWorkProgress()
if progress < 0.99 then
adjacentUnit:StopSiloBuild()
IssueSiloBuildTactical({adjacentUnit})
if EntityCategoryContains(categories.STRATEGIC, adjacentUnit) then
IssueSiloBuildNuke({adjacentUnit})
else
IssueSiloBuildTactical({adjacentUnit})
end

adjacentUnit:GiveNukeSiloBlocks(progress)
LOG(autoModeEnabled)
adjacentUnit:SetAutoMode(autoModeEnabled)
end
end
Expand Down

0 comments on commit fa0dda1

Please sign in to comment.