Compare commits

..

No commits in common. "1d4eb423d627aab69e5ec485ecb2b5c252be2b72" and "2d4784f62e9c65838e8f0be4e41b70a64a90e26b" have entirely different histories.

View File

@ -272,9 +272,8 @@ local function stat_str(stat)
end
-- Read the leaderboard
if isserver then
local f = io.open(FILENAME, "r")
if f then
local f = io.open(FILENAME, "r")
if f then
for l in f:lines() do
-- Leaderboard is stored in the following tab separated format
-- mapnum, name, skin, color, time, splits, flags, stat
@ -325,9 +324,8 @@ if isserver then
sortScores()
f:close()
else
else
print("Failed to open file: ", FILENAME)
end
end
function allowJoin(v)
@ -1317,7 +1315,6 @@ 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)
@ -1342,7 +1339,6 @@ local function saveTime(player)
end
f:close()
end
end
-- DEBUGGING