修复游戏结束后还计算按键次数
This commit is contained in:
@@ -33,7 +33,7 @@ local function getNewStatTable()
|
||||
return T
|
||||
end
|
||||
local function pressKey(P,keyID)
|
||||
if P.keyAvailable[keyID]then
|
||||
if P.keyAvailable[keyID]and P.alive then
|
||||
P.keyPressing[keyID]=true
|
||||
P.actList[keyID](P)
|
||||
if P.control then
|
||||
@@ -49,7 +49,7 @@ local function releaseKey(P,keyID)
|
||||
P.keyPressing[keyID]=false
|
||||
end
|
||||
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,keyID)
|
||||
P.keyPressing[keyID]=true
|
||||
|
||||
Reference in New Issue
Block a user