forked from Not/srb2k-leaderboard
Use strings as the default cvar value
This commit is contained in:
parent
89da89fbfe
commit
3d54350dae
@ -78,7 +78,7 @@ local allowJoin
|
||||
|
||||
local cv_gui = CV_RegisterVar({
|
||||
name = "lb_gui",
|
||||
defaultvalue = GUI_ON,
|
||||
defaultvalue = "On",
|
||||
flags = 0,
|
||||
PossibleValue = {Off = GUI_OFF, Splits = GUI_SPLITS, On = GUI_ON}
|
||||
})
|
||||
@ -86,7 +86,7 @@ local cv_gui = CV_RegisterVar({
|
||||
local AntiAFK = true
|
||||
CV_RegisterVar({
|
||||
name = "lb_afk",
|
||||
defaultvalue = 1,
|
||||
defaultvalue = "On",
|
||||
flags = CV_NETVAR | CV_CALL,
|
||||
PossibleValue = CV_OnOff,
|
||||
func = function(v)
|
||||
@ -105,7 +105,7 @@ CV_RegisterVar({
|
||||
|
||||
local cv_enable = CV_RegisterVar({
|
||||
name = "lb_enable",
|
||||
defaultvalue = 1,
|
||||
defaultvalue = "On",
|
||||
flags = CV_NETVAR | CV_CALL,
|
||||
PossibleValue = CV_OnOff,
|
||||
func = function(v)
|
||||
@ -125,7 +125,7 @@ local cv_saves = CV_RegisterVar({
|
||||
|
||||
local cv_interrupt = CV_RegisterVar({
|
||||
name = "lb_interrupt",
|
||||
defaultvalue = 0,
|
||||
defaultvalue = "Off",
|
||||
flags = CV_NETVAR | CV_CALL,
|
||||
PossibleValue = CV_OnOff,
|
||||
func = function(v)
|
||||
@ -193,7 +193,7 @@ end
|
||||
|
||||
local cv_spb_separate = CV_RegisterVar({
|
||||
name = "lb_spb_combined",
|
||||
defaultvalue = 1,
|
||||
defaultvalue = "On",
|
||||
flags = CV_NETVAR | CV_CALL,
|
||||
PossibleValue = CV_YesNo,
|
||||
func = function(v)
|
||||
|
Loading…
Reference in New Issue
Block a user