修复游戏结束后还计算按键次数

This commit is contained in:
MrZ626
2021-01-07 18:03:21 +08:00
parent 4dc6512898
commit 3ef57cde27

View File

@@ -33,7 +33,7 @@ local function getNewStatTable()
return T return T
end end
local function pressKey(P,keyID) local function pressKey(P,keyID)
if P.keyAvailable[keyID]then if P.keyAvailable[keyID]and P.alive then
P.keyPressing[keyID]=true P.keyPressing[keyID]=true
P.actList[keyID](P) P.actList[keyID](P)
if P.control then if P.control then
@@ -49,7 +49,7 @@ local function releaseKey(P,keyID)
P.keyPressing[keyID]=false P.keyPressing[keyID]=false
end end
local function pressKey_Rec(P,keyID) local function pressKey_Rec(P,keyID)
if P.keyAvailable[keyID]then if P.keyAvailable[keyID]and P.alive then
ins(GAME.rep,GAME.frame+1) ins(GAME.rep,GAME.frame+1)
ins(GAME.rep,keyID) ins(GAME.rep,keyID)
P.keyPressing[keyID]=true P.keyPressing[keyID]=true