在加载模式时检测是否有非法rank
This commit is contained in:
@@ -25,6 +25,13 @@ function Tmr.load()
|
|||||||
M[k]=v
|
M[k]=v
|
||||||
end
|
end
|
||||||
M.records=FILE.loadRecord(m.name)or M.score and{}
|
M.records=FILE.loadRecord(m.name)or M.score and{}
|
||||||
|
if M.score then
|
||||||
|
if modeRanks[M.name]==6 then
|
||||||
|
modeRanks[M.name]=0
|
||||||
|
end
|
||||||
|
else
|
||||||
|
modeRanks[M.name]=6
|
||||||
|
end
|
||||||
-- M.icon=gc.newImage("image/modeIcon/"..m.icon..".png")
|
-- M.icon=gc.newImage("image/modeIcon/"..m.icon..".png")
|
||||||
-- M.icon=gc.newImage("image/modeIcon/custom.png")
|
-- M.icon=gc.newImage("image/modeIcon/custom.png")
|
||||||
elseif S.phase==6 then
|
elseif S.phase==6 then
|
||||||
@@ -237,7 +244,6 @@ function Tmr.play(dt)
|
|||||||
restartCount=restartCount+1
|
restartCount=restartCount+1
|
||||||
if restartCount>20 then
|
if restartCount>20 then
|
||||||
TASK.clear("play")
|
TASK.clear("play")
|
||||||
mergeStat(stat,P1.stat)
|
|
||||||
resetPartGameData()
|
resetPartGameData()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user