forked from Not/srb2k-leaderboard
Simplify allowJoin()
This commit is contained in:
parent
906444ae08
commit
89da89fbfe
@ -297,16 +297,13 @@ end
|
||||
|
||||
function allowJoin(v)
|
||||
if not cv_interrupt.value then
|
||||
local y
|
||||
if v then
|
||||
y = "yes"
|
||||
COM_BufInsertText(server, "allowteamchange Yes")
|
||||
hud.enable("freeplay")
|
||||
else
|
||||
y = "no"
|
||||
COM_BufInsertText(server, "allowteamchange No")
|
||||
hud.disable("freeplay")
|
||||
end
|
||||
|
||||
COM_BufInsertText(server, "allowteamchange " + y)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user