fix function name

This commit is contained in:
Lonsfor 2022-05-15 22:31:51 +02:00
parent 3d54350dae
commit e25b417fbd
1 changed files with 5 additions and 5 deletions

View File

@ -307,7 +307,7 @@ function allowJoin(v)
end
end
local function 2PlusInGame()
local function TwoPlusInGame()
local n = 0
for p in players.iterate do
if p.valid and not p.spectator then
@ -323,9 +323,9 @@ end
local function initLeaderboard(player)
if cv_enable.value and G_RaceGametype() then
if disable and leveltime < START_TIME then
disable = 2PlusInGame()
disable = TwoPlusInGame()
else
disable = $ or 2PlusInGame()
disable = $ or TwoPlusInGame()
end
else
disable = true
@ -342,7 +342,7 @@ end
addHook("PlayerSpawn", initLeaderboard)
local function doyoudare(player)
if 2PlusInGame() or player.spectator then
if TwoPlusInGame() or player.spectator then
CONS_Printf(player, "How dare you")
return false
end
@ -1163,7 +1163,7 @@ local function think()
if disable then
if AntiAFK then
if 2PlusInGame() then
if TwoPlusInGame() then
for p in players.iterate do
if p.valid and not p.spectator and not p.exiting and p.lives > 0 then
if p.cmd.buttons then