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