reinitialize lb only if ST_SEP has changed

This commit is contained in:
Not 2022-08-25 00:55:40 +02:00
parent 499f00b6f4
commit c150ed6be1

View File

@ -215,14 +215,18 @@ local cv_spb_separate = CV_RegisterVar({
flags = CV_NETVAR | CV_CALL | CV_NOINIT, flags = CV_NETVAR | CV_CALL | CV_NOINIT,
PossibleValue = CV_YesNo, PossibleValue = CV_YesNo,
func = function(v) func = function(v)
local curSep = ST_SEP
if v.value then if v.value then
ST_SEP = F_SPBATK ST_SEP = F_SPBATK
else else
ST_SEP = F_SPBATK | F_SPBBIG | F_SPBEXP ST_SEP = F_SPBATK | F_SPBBIG | F_SPBEXP
end end
if curSep != ST_SEP then
reinit_lb() reinit_lb()
end end
end
}) })
local function score_t(map, name, skin, color, time, splits, flags, stat) local function score_t(map, name, skin, color, time, splits, flags, stat)