reinitialize lb only if ST_SEP has changed
This commit is contained in:
parent
499f00b6f4
commit
c150ed6be1
@ -215,13 +215,17 @@ local cv_spb_separate = CV_RegisterVar({
|
||||
flags = CV_NETVAR | CV_CALL | CV_NOINIT,
|
||||
PossibleValue = CV_YesNo,
|
||||
func = function(v)
|
||||
local curSep = ST_SEP
|
||||
|
||||
if v.value then
|
||||
ST_SEP = F_SPBATK
|
||||
else
|
||||
ST_SEP = F_SPBATK | F_SPBBIG | F_SPBEXP
|
||||
end
|
||||
|
||||
reinit_lb()
|
||||
if curSep != ST_SEP then
|
||||
reinit_lb()
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user