This commit is contained in:
Not 2022-03-28 13:14:08 +02:00
parent e68ab38262
commit 70cd579079

View File

@ -432,7 +432,7 @@ local function lbComp(a, b)
-- if s is negative then b is harder -- if s is negative then b is harder
-- if s is 0 then compare time -- if s is 0 then compare time
local s = (a["flags"] & (F_SPBEXP | F_SPBBIG)) - (b["flags"] & (F_SPBEXP | F_SPBBIG)) local s = (a["flags"] & (F_SPBEXP | F_SPBBIG)) - (b["flags"] & (F_SPBEXP | F_SPBBIG))
return s > 0 or not(s < 0 or a["time"] > b["time"]) return s > 0 or not(s < 0 or a["time"] >= b["time"])
end end
local function saveTime(player) local function saveTime(player)
@ -504,7 +504,7 @@ end
-- DEBUGGING -- DEBUGGING
--local function saveLeaderboard(player, ...) --local function saveLeaderboard(player, ...)
-- timeFinished = player.realtime -- timeFinished = tonumber(... or player.realtime)
-- splits = {1000, 2000, 3000} -- splits = {1000, 2000, 3000}
-- saveTime(player) -- saveTime(player)
--end --end