播放录像时暂停不会计暂停时间
This commit is contained in:
@@ -430,9 +430,6 @@ end
|
|||||||
function pauseGame()
|
function pauseGame()
|
||||||
if not SCN.swapping then
|
if not SCN.swapping then
|
||||||
GAME.restartCount=0--Avoid strange darkness
|
GAME.restartCount=0--Avoid strange darkness
|
||||||
if not GAME.result then
|
|
||||||
GAME.pauseCount=GAME.pauseCount+1
|
|
||||||
end
|
|
||||||
if not GAME.replaying then
|
if not GAME.replaying then
|
||||||
for i=1,#PLAYERS do
|
for i=1,#PLAYERS do
|
||||||
local l=PLAYERS[i].keyPressing
|
local l=PLAYERS[i].keyPressing
|
||||||
|
|||||||
@@ -110,6 +110,9 @@ function scene.sceneInit(org)
|
|||||||
S.trophyColor=COLOR.lCyan
|
S.trophyColor=COLOR.lCyan
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if not(GAME.result or GAME.replaying)then
|
||||||
|
GAME.pauseCount=GAME.pauseCount+1
|
||||||
|
end
|
||||||
if org~="play"and GAME.prevBG then
|
if org~="play"and GAME.prevBG then
|
||||||
BG.set(GAME.prevBG)
|
BG.set(GAME.prevBG)
|
||||||
end
|
end
|
||||||
@@ -143,7 +146,7 @@ function scene.keyDown(key)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function scene.update(dt)
|
function scene.update(dt)
|
||||||
if not GAME.result then
|
if not(GAME.result or GAME.replaying)then
|
||||||
GAME.pauseTime=GAME.pauseTime+dt
|
GAME.pauseTime=GAME.pauseTime+dt
|
||||||
end
|
end
|
||||||
if sceneTemp.timer<50 then
|
if sceneTemp.timer<50 then
|
||||||
|
|||||||
Reference in New Issue
Block a user