From 87d6e0b50196276d802b7d869c9c00e4ec8d9232 Mon Sep 17 00:00:00 2001 From: MrZ_26 Date: Wed, 12 Aug 2020 00:02:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=94=BE=E6=97=B6=E6=9A=82=E5=81=9C?= =?UTF-8?q?=E4=B8=8D=E6=89=93=E6=96=AD=E7=8E=A9=E5=AE=B6=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/gametoolfunc.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/parts/gametoolfunc.lua b/parts/gametoolfunc.lua index 54e4e1ff..afa8ca75 100644 --- a/parts/gametoolfunc.lua +++ b/parts/gametoolfunc.lua @@ -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