Compare commits
2 Commits
2d4784f62e
...
1d4eb423d6
Author | SHA1 | Date | |
---|---|---|---|
1d4eb423d6 | |||
518e9f7893 |
@ -272,6 +272,7 @@ local function stat_str(stat)
|
||||
end
|
||||
|
||||
-- Read the leaderboard
|
||||
if isserver then
|
||||
local f = io.open(FILENAME, "r")
|
||||
if f then
|
||||
for l in f:lines() do
|
||||
@ -327,6 +328,7 @@ if f then
|
||||
else
|
||||
print("Failed to open file: ", FILENAME)
|
||||
end
|
||||
end
|
||||
|
||||
function allowJoin(v)
|
||||
if not cv_interrupt.value then
|
||||
@ -1315,6 +1317,7 @@ local function saveTime(player)
|
||||
StatTrack = true
|
||||
end
|
||||
|
||||
if isserver then
|
||||
local f = assert(io.open(FILENAME, "w"))
|
||||
if f == nil then
|
||||
print("Failed to open file for writing: " + FILENAME)
|
||||
@ -1340,6 +1343,7 @@ local function saveTime(player)
|
||||
|
||||
f:close()
|
||||
end
|
||||
end
|
||||
|
||||
-- DEBUGGING
|
||||
--local function saveLeaderboard(player, ...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user