开局前按键次数也会被统计

This commit is contained in:
MrZ626
2020-10-08 18:13:10 +08:00
parent 5ec14a7cc1
commit 859daa5908

View File

@@ -1050,8 +1050,8 @@ local function pressKey(P,i)
ins(P.keyTime,1,game.frame)
P.keyTime[11]=nil
end
P.stat.key=P.stat.key+1
end
P.stat.key=P.stat.key+1
end
end
local function releaseKey(P,i)
@@ -1070,8 +1070,8 @@ local function pressKey_Rec(P,i)
ins(P.keyTime,1,game.frame)
P.keyTime[11]=nil
end
P.stat.key=P.stat.key+1
end
P.stat.key=P.stat.key+1
end
end
local function releaseKey_Rec(P,i)
@@ -1292,7 +1292,7 @@ local function loadAI(P,AIdata)--Load AI params
next=AIdata.next,
hold=AIdata.hold,
_20G=ENV._20G,
_20G=P._20G,
bag=AIdata.bag,
node=AIdata.node,
}