diff --git a/leaderboard.lua b/leaderboard.lua index f66064d..7fdf93f 100644 --- a/leaderboard.lua +++ b/leaderboard.lua @@ -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