由于”远程玩家“的加入,玩家布尔值属性human改为字符串属性type

This commit is contained in:
MrZ626
2020-12-11 22:42:59 +08:00
parent 11a93c8470
commit e976fbb623
4 changed files with 16 additions and 16 deletions

View File

@@ -136,7 +136,7 @@ function update.alive(P,dt)
end
end
if not P.human and P.control and P.waiting==-1 then
if P.type=="computer"and P.control and P.waiting==-1 then
local C=P.AI_keys
P.AI_delay=P.AI_delay-1
if not C[1]then