修复玩家类setHold方法,applyGameEnv函数使用更多的set初始化

This commit is contained in:
MrZ626
2020-11-12 19:52:24 +08:00
parent ae3858a6f0
commit 7fe275f168
2 changed files with 11 additions and 17 deletions

View File

@@ -115,8 +115,8 @@ function Player.set20G(P,if20g,init)
end
function Player.setHold(P,ifhold)
P.gameEnv.hold=ifhold
P.keyAvailable[8]=not ifhold
virtualkey[8].ava=not ifhold
P.keyAvailable[8]=ifhold
virtualkey[8].ava=ifhold
if not ifhold then
P.hd=nil
end
@@ -127,6 +127,7 @@ end
function Player.setInvisible(P,time)
if time<0 then
P.keepVisible=true
P.showTime=1e99
else
P.keepVisible=false
P.showTime=time