from retail

This commit is contained in:
NoM0Re
2025-01-22 18:56:11 +01:00
parent 674ea9fe1e
commit 8dcb62ec81
6 changed files with 29 additions and 32 deletions
+4 -1
View File
@@ -428,8 +428,11 @@ local function UpdateProgressFromState(self, minMaxConfig, state, progressSource
else
adjustMin = 0
end
local max
if minMaxConfig.adjustedMax then
if duration == 0 then
max = 0
elseif minMaxConfig.adjustedMax then
max = minMaxConfig.adjustedMax
elseif minMaxConfig.adjustedMaxRelPercent then
max = minMaxConfig.adjustedMaxRelPercent * duration