Lua loaded records #9

Merged
Not merged 21 commits from partition into master 2022-12-06 18:05:51 +00:00
Showing only changes of commit 5d59f6c6fc - Show all commits

View File

@ -1184,12 +1184,12 @@ local function saveTime(player)
end end
-- DEBUGGING -- DEBUGGING
local function saveLeaderboard(player, ...) --local function saveLeaderboard(player, ...)
timeFinished = tonumber(... or player.realtime) -- timeFinished = tonumber(... or player.realtime)
splits = {1000, 2000, 3000} -- splits = {1000, 2000, 3000}
saveTime(player) -- saveTime(player)
end --end
COM_AddCommand("save", saveLeaderboard) --COM_AddCommand("save", saveLeaderboard)
local function regLap(player) local function regLap(player)
if player.laps > prevLap and timeFinished == 0 then if player.laps > prevLap and timeFinished == 0 then