From 2512bace193593799352423303f2674d1befc36c Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 14 Dec 2020 17:04:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=B8=B8=E6=88=8F=E4=B8=AD?= =?UTF-8?q?=E9=80=94=E9=80=80=E5=87=BA=E6=97=B6=E7=BB=93=E7=AE=97=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/pause.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/parts/scenes/pause.lua b/parts/scenes/pause.lua index f9c03270..942dfab4 100644 --- a/parts/scenes/pause.lua +++ b/parts/scenes/pause.lua @@ -122,11 +122,9 @@ function scene.sceneInit(org) end function scene.sceneBack() love.keyboard.setKeyRepeat(true) - if not GAME.replaying and(GAME.frame>400 or GAME.result)then + STAT.todayTime=STAT.todayTime+PLAYERS[1].stat.time + if not GAME.replaying and(GAME.frame>400 or GAME.result)and not GAME.result then mergeStat(STAT,PLAYERS[1].stat) - STAT.todayTime=STAT.todayTime+PLAYERS[1].stat.time - end - if not GAME.result then FILE.save(STAT,"conf/data") end end