修正其他玩家的结束游戏消息处理太早导致录像没放完出问题

This commit is contained in:
MrZ_26
2022-11-05 22:59:21 +08:00
parent 6d71b26595
commit 7aed15fd4f
2 changed files with 6 additions and 2 deletions

View File

@@ -704,7 +704,6 @@ function NET.wsCallBack.player_finish(body)
if P.uid==body.data.playerId then
NETPLY.setPlace(P.uid,#PLY_ALIVE)
P.loseTimer=26
P:lose(true)
break
end
end

View File

@@ -2707,7 +2707,12 @@ function Player:update(dt)
end
if frameDelta then
for _=1,
self.loseTimer and 6 or
self.loseTimer and min(frameDelta,
self.loseTimer>16 and 2 or
self.loseTimer>6.2 and 12 or
self.loseTimer>2.6 and 260 or
2600
) or
frameDelta<26 and 1 or
frameDelta<50 and 2 or
frameDelta<80 and 3 or