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 scroll_to
|
||||||
|
|
||||||
local ticsToTime
|
local ticsToTime
|
||||||
|
|
||||||
|
local allowJoin
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
local cv_gui = CV_RegisterVar({
|
local cv_gui = CV_RegisterVar({
|
||||||
@ -85,6 +87,9 @@ local cv_enable = CV_RegisterVar({
|
|||||||
PossibleValue = CV_OnOff,
|
PossibleValue = CV_OnOff,
|
||||||
func = function(v)
|
func = function(v)
|
||||||
disable = $ or not v.value
|
disable = $ or not v.value
|
||||||
|
if disable then
|
||||||
|
allowJoin(true)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -211,7 +216,7 @@ else
|
|||||||
print("Failed to open file: ", FILENAME)
|
print("Failed to open file: ", FILENAME)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function allowJoin(v)
|
function allowJoin(v)
|
||||||
if not cv_interrupt.value then
|
if not cv_interrupt.value then
|
||||||
local y
|
local y
|
||||||
if v then
|
if v then
|
||||||
|
Loading…
Reference in New Issue
Block a user