修复玩家死亡掉落动画任务能跨局把新开的局里的玩家移除 close #918
This commit is contained in:
@@ -613,7 +613,10 @@ do-- function Player:dropPosition(x,y,size)
|
|||||||
vy=vy+.0626
|
vy=vy+.0626
|
||||||
self:setPosition(x,y,size)
|
self:setPosition(x,y,size)
|
||||||
if y>2600 then
|
if y>2600 then
|
||||||
table.remove(PLAYERS,TABLE.find(PLAYERS,self))
|
local index=TABLE.find(PLAYERS,self)
|
||||||
|
if index then
|
||||||
|
table.remove(PLAYERS,index)
|
||||||
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user