修复刚安装就用简洁模式玩会报错(修改成绩比较逻辑)
This commit is contained in:
@@ -1610,9 +1610,9 @@ local function gameOver()--Save record
|
||||
GAME.rank=R
|
||||
end
|
||||
if scoreValid()and M.score then
|
||||
local r=RANKS[M.name]--Old rank
|
||||
if RANKS[M.name]then--Old rank exist
|
||||
local needSave
|
||||
if R>r then
|
||||
if R>RANKS[M.name]then
|
||||
RANKS[M.name]=R
|
||||
needSave=true
|
||||
end
|
||||
@@ -1631,6 +1631,7 @@ local function gameOver()--Save record
|
||||
if needSave then
|
||||
FILE.save(RANKS,"conf/unlock","q")
|
||||
end
|
||||
end
|
||||
local D=M.score(P)
|
||||
local L=M.records
|
||||
local p=#L--Rank-1
|
||||
|
||||
Reference in New Issue
Block a user