修复远程玩家update流程错误
This commit is contained in:
@@ -2213,13 +2213,18 @@ function Player:update(dt)
|
||||
self.trigFrame=self.trigFrame+(self.gameEnv.FTLock and dt*60 or 1)
|
||||
if self.alive then
|
||||
local S=self.stat
|
||||
if self.type=='computer'then
|
||||
self.bot:update(dt)
|
||||
end
|
||||
if self.type=='computer'then self.bot:update(dt)end
|
||||
while self.trigFrame>=1 do
|
||||
if self.alive then
|
||||
if self.streamProgress then
|
||||
local frameDelta=self.type=='remote'and (self.stream[#self.stream-1]or 0)-self.frameRun or 0
|
||||
local frameDelta
|
||||
if self.type=='remote'then
|
||||
frameDelta=(self.stream[#self.stream-1]or 0)-self.frameRun
|
||||
if frameDelta==0 then frameDelta=nil end
|
||||
else
|
||||
frameDelta=0
|
||||
end
|
||||
if frameDelta then
|
||||
for _=1,
|
||||
frameDelta<26 and 1 or
|
||||
frameDelta<50 and 2 or
|
||||
@@ -2232,6 +2237,7 @@ function Player:update(dt)
|
||||
update_streaming(self)
|
||||
update_alive(self)
|
||||
end
|
||||
end
|
||||
S.time=self.stat.frame/60
|
||||
else
|
||||
if self.timing then S.time=S.time+dt end
|
||||
|
||||
Reference in New Issue
Block a user