- Fix remove method
This commit is contained in:
@@ -877,7 +877,7 @@ do-- function freshPlayerPosition(sudden)
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
if #L<=36 then
|
if #L<=36 then
|
||||||
for i=2,#L do
|
for i=1,#L do
|
||||||
L[i].miniMode=false
|
L[i].miniMode=false
|
||||||
L[i].draw=require"parts.player.draw".norm
|
L[i].draw=require"parts.player.draw".norm
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2654,7 +2654,13 @@ local function update_dead(P,dt)
|
|||||||
_updateMisc(P,dt)
|
_updateMisc(P,dt)
|
||||||
end
|
end
|
||||||
function Player:_die()
|
function Player:_die()
|
||||||
do local p=TABLE.find(PLY_ALIVE,self) if p then PLY_ALIVE[p]=rem(PLY_ALIVE) end end
|
do
|
||||||
|
local p=TABLE.find(PLY_ALIVE,self)
|
||||||
|
if p then
|
||||||
|
PLY_ALIVE[p]=PLY_ALIVE[#PLY_ALIVE]
|
||||||
|
rem(PLY_ALIVE)
|
||||||
|
end
|
||||||
|
end
|
||||||
self.alive=false
|
self.alive=false
|
||||||
self.timing=false
|
self.timing=false
|
||||||
self.control=false
|
self.control=false
|
||||||
|
|||||||
Reference in New Issue
Block a user