Skip to content

Commit f748924

Browse files
committed
Fix context menu on unit type.
1 parent 8035e04 commit f748924

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

LuaUI/Widgets/gui_contextmenu.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,8 +755,8 @@ local function weapons2Table(cells, ws, unitID)
755755

756756
if show_range then
757757
local range = cp.truerange or wd.range
758-
local mult = unitID and (Spring.GetUnitRulesParam(unitID, "rangeMult") or 1)
759-
local boost = unitID and (Spring.GetUnitRulesParam(unitID, "comm_range_boost") or 0)
758+
local mult = unitID and Spring.GetUnitRulesParam(unitID, "rangeMult") or 1
759+
local boost = unitID and Spring.GetUnitRulesParam(unitID, "comm_range_boost") or 0
760760
cells[#cells+1] = ' - Range:'
761761
cells[#cells+1] = numformat((range + boost) * mult) .. " elmo"
762762
end

0 commit comments

Comments
 (0)