播放录像时暂停不会计暂停时间
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user