游戏开始开始两秒后或者确实结束后才计入统计数据

This commit is contained in:
MrZ626
2020-12-13 23:43:10 +08:00
parent d5dcc78acd
commit 7d62f00274
2 changed files with 2 additions and 2 deletions

View File

@@ -526,7 +526,7 @@ local function tick_showMods()
end end
end end
function resetGameData(replaying) function resetGameData(replaying)
if PLAYERS[1]and not GAME.replaying then if PLAYERS[1]and not GAME.replaying and(GAME.frame>400 or GAME.result)then
mergeStat(STAT,PLAYERS[1].stat) mergeStat(STAT,PLAYERS[1].stat)
STAT.todayTime=STAT.todayTime+PLAYERS[1].stat.time STAT.todayTime=STAT.todayTime+PLAYERS[1].stat.time
end end

View File

@@ -122,7 +122,7 @@ function scene.sceneInit(org)
end end
function scene.sceneBack() function scene.sceneBack()
love.keyboard.setKeyRepeat(true) love.keyboard.setKeyRepeat(true)
if not GAME.replaying then if not GAME.replaying and(GAME.frame>400 or GAME.result)then
mergeStat(STAT,PLAYERS[1].stat) mergeStat(STAT,PLAYERS[1].stat)
STAT.todayTime=STAT.todayTime+PLAYERS[1].stat.time STAT.todayTime=STAT.todayTime+PLAYERS[1].stat.time
end end