游戏开始开始两秒后或者确实结束后才计入统计数据
This commit is contained in:
@@ -526,7 +526,7 @@ local function tick_showMods()
|
||||
end
|
||||
end
|
||||
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)
|
||||
STAT.todayTime=STAT.todayTime+PLAYERS[1].stat.time
|
||||
end
|
||||
|
||||
@@ -122,7 +122,7 @@ function scene.sceneInit(org)
|
||||
end
|
||||
function scene.sceneBack()
|
||||
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)
|
||||
STAT.todayTime=STAT.todayTime+PLAYERS[1].stat.time
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user