播放录像时暂停不会计暂停时间

This commit is contained in:
MrZ626
2020-12-08 01:13:00 +08:00
parent 9e1df8b804
commit 62a039b672
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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