回放时暂停不打断玩家操作
This commit is contained in:
@@ -263,11 +263,13 @@ function pauseGame()
|
|||||||
if not game.result then
|
if not game.result then
|
||||||
game.pauseCount=game.pauseCount+1
|
game.pauseCount=game.pauseCount+1
|
||||||
end
|
end
|
||||||
for i=1,#players do
|
if not game.replaying then
|
||||||
local l=players[i].keyPressing
|
for i=1,#players do
|
||||||
for j=1,#l do
|
local l=players[i].keyPressing
|
||||||
if l[j]then
|
for j=1,#l do
|
||||||
players[i]:releaseKey(j)
|
if l[j]then
|
||||||
|
players[i]:releaseKey(j)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user