forked from Not/srb2k-leaderboard
allow join on disable
This commit is contained in:
parent
ee251b7a44
commit
c792dd1079
@ -62,6 +62,8 @@ local clamp
|
||||
local scroll_to
|
||||
|
||||
local ticsToTime
|
||||
|
||||
local allowJoin
|
||||
---------------
|
||||
|
||||
local cv_gui = CV_RegisterVar({
|
||||
@ -85,6 +87,9 @@ local cv_enable = CV_RegisterVar({
|
||||
PossibleValue = CV_OnOff,
|
||||
func = function(v)
|
||||
disable = $ or not v.value
|
||||
if disable then
|
||||
allowJoin(true)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
@ -211,7 +216,7 @@ else
|
||||
print("Failed to open file: ", FILENAME)
|
||||
end
|
||||
|
||||
local function allowJoin(v)
|
||||
function allowJoin(v)
|
||||
if not cv_interrupt.value then
|
||||
local y
|
||||
if v then
|
||||
|
Loading…
Reference in New Issue
Block a user