From 62a039b67258457c85b9d1b883f6c214cc37e0f1 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 8 Dec 2020 01:13:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=AD=E6=94=BE=E5=BD=95=E5=83=8F=E6=97=B6?= =?UTF-8?q?=E6=9A=82=E5=81=9C=E4=B8=8D=E4=BC=9A=E8=AE=A1=E6=9A=82=E5=81=9C?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/gametoolfunc.lua | 3 --- parts/scenes/pause.lua | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parts/gametoolfunc.lua b/parts/gametoolfunc.lua index defd0e58..a064b3cb 100644 --- a/parts/gametoolfunc.lua +++ b/parts/gametoolfunc.lua @@ -430,9 +430,6 @@ end function pauseGame() if not SCN.swapping then GAME.restartCount=0--Avoid strange darkness - if not GAME.result then - GAME.pauseCount=GAME.pauseCount+1 - end if not GAME.replaying then for i=1,#PLAYERS do local l=PLAYERS[i].keyPressing diff --git a/parts/scenes/pause.lua b/parts/scenes/pause.lua index 1cb32812..a3861938 100644 --- a/parts/scenes/pause.lua +++ b/parts/scenes/pause.lua @@ -110,6 +110,9 @@ function scene.sceneInit(org) S.trophyColor=COLOR.lCyan end end + if not(GAME.result or GAME.replaying)then + GAME.pauseCount=GAME.pauseCount+1 + end if org~="play"and GAME.prevBG then BG.set(GAME.prevBG) end @@ -143,7 +146,7 @@ function scene.keyDown(key) end function scene.update(dt) - if not GAME.result then + if not(GAME.result or GAME.replaying)then GAME.pauseTime=GAME.pauseTime+dt end if sceneTemp.timer<50 then