修复数据保存到统计的时机错误

This commit is contained in:
MrZ626
2021-06-06 21:13:48 +08:00
parent a9ab373f0b
commit 2e5f943b79
3 changed files with 15 additions and 10 deletions

View File

@@ -120,10 +120,7 @@ end
function scene.sceneBack()
love.keyboard.setKeyRepeat(true)
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','q')
end
trySave()
end
function scene.keyDown(key)