调整统计文件保存时机,左上角不再弹出保存成功提醒

This commit is contained in:
MrZ626
2021-05-14 12:11:56 +08:00
parent 5697a201ef
commit e2b0069947
2 changed files with 3 additions and 3 deletions

View File

@@ -245,7 +245,6 @@ function loadGame(M,ifQuickPlay,ifNet)--Load a mode and go to game scene
end
function gameOver()--Save record
if GAME.replaying then return end
FILE.save(STAT,'conf/data')
local M=GAME.curMode
local R=M.getRank
if R then
@@ -434,9 +433,10 @@ do--function resetGameData(args)
end
function resetGameData(args,seed)
if not args then args=""end
if PLAYERS[1]and not GAME.replaying and(PLAYERS[1].frameRun>400 or GAME.result)then
if PLAYERS[1]and not GAME.replaying and(PLAYERS[1].frameRun>300 or GAME.result)then
mergeStat(STAT,PLAYERS[1].stat)
STAT.todayTime=STAT.todayTime+PLAYERS[1].stat.time
FILE.save(STAT,'conf/data','q')
end
GAME.result=false

View File

@@ -122,7 +122,7 @@ function scene.sceneBack()
STAT.todayTime=STAT.todayTime+PLAYERS[1].stat.time
if not GAME.replaying and(PLAYERS[1].frameRun>400 or GAME.result)and not GAME.result then
mergeStat(STAT,PLAYERS[1].stat)
FILE.save(STAT,'conf/data')
FILE.save(STAT,'conf/data','q')
end
end