better init logic + make sure we are not in battle

This commit is contained in:
Lonsfor 2022-05-14 07:33:03 +02:00
parent 14645dbc90
commit 6ea3341b06
1 changed files with 7 additions and 4 deletions

View File

@ -321,12 +321,15 @@ local function ingame()
end
local function initLeaderboard(player)
if disable and leveltime < START_TIME then
disable = ingame() > 1
if cv_enable.value and G_RaceGametype() then
if disable and leveltime < START_TIME then
disable = ingame() > 1
else
disable = $ or ingame() > 1
end
else
disable = disable or ingame() > 1
disable = true
end
disable = $ or not cv_enable.value
-- Restore encore mode to initial value
if disable and EncoreInitial != nil then