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