v1.2.17_hf
This commit is contained in:
parent
647e4a0299
commit
f53a6ba91f
@ -121,7 +121,7 @@ local function getScoreTable(map, flags)
|
|||||||
--return id
|
--return id
|
||||||
|
|
||||||
local mode = flags & F_SPBATK
|
local mode = flags & F_SPBATK
|
||||||
return lb[mode] and lb[mode][map] or {}
|
return lb[mode] and lb[mode][map] or nil
|
||||||
end
|
end
|
||||||
|
|
||||||
local function score_t(map, name, skin, color, time, splits, flags, restat)
|
local function score_t(map, name, skin, color, time, splits, flags, restat)
|
||||||
@ -171,7 +171,7 @@ if f then
|
|||||||
flags = tonumber(t[7])
|
flags = tonumber(t[7])
|
||||||
end
|
end
|
||||||
|
|
||||||
local scoreTable = getScoreTable(tonumber(t[1]), flags)
|
local scoreTable = getScoreTable(tonumber(t[1]), flags) or {}
|
||||||
|
|
||||||
local spl = {}
|
local spl = {}
|
||||||
if t[6] != nil then
|
if t[6] != nil then
|
||||||
@ -865,7 +865,7 @@ end
|
|||||||
|
|
||||||
-- Find location of player and scroll to it
|
-- Find location of player and scroll to it
|
||||||
function scroll_to(player)
|
function scroll_to(player)
|
||||||
local m = getScoreTable(gamemap, Flags)
|
local m = getScoreTable(gamemap, Flags) or {}
|
||||||
|
|
||||||
scrollToPos = 2
|
scrollToPos = 2
|
||||||
for pos, score in ipairs(m) do
|
for pos, score in ipairs(m) do
|
||||||
@ -879,7 +879,7 @@ function scroll_to(player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function saveTime(player)
|
local function saveTime(player)
|
||||||
local scoreTable = getScoreTable(gamemap, Flags)
|
local scoreTable = getScoreTable(gamemap, Flags) or {}
|
||||||
|
|
||||||
local newscore = score_t(
|
local newscore = score_t(
|
||||||
gamemap,
|
gamemap,
|
||||||
|
Loading…
Reference in New Issue
Block a user