forked from Not/srb2k-leaderboard
better init logic + make sure we are not in battle
This commit is contained in:
parent
14645dbc90
commit
6ea3341b06
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user