游戏开始开始两秒后或者确实结束后才计入统计数据
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user