回放时暂停不打断玩家操作

This commit is contained in:
MrZ_26
2020-08-12 00:02:26 +08:00
parent 45430a6a4a
commit 87d6e0b501

View File

@@ -263,11 +263,13 @@ function pauseGame()
if not game.result then
game.pauseCount=game.pauseCount+1
end
for i=1,#players do
local l=players[i].keyPressing
for j=1,#l do
if l[j]then
players[i]:releaseKey(j)
if not game.replaying then
for i=1,#players do
local l=players[i].keyPressing
for j=1,#l do
if l[j]then
players[i]:releaseKey(j)
end
end
end
end