修正玩家时间计算错误
This commit is contained in:
@@ -2214,8 +2214,14 @@ function Player:update(dt)
|
||||
if self.alive then
|
||||
local S=self.stat
|
||||
if self.type=='computer'then self.bot:update(dt)end
|
||||
if self.trigFrame>=1 and self.alive then
|
||||
if self.streamProgress then
|
||||
S.time=self.stat.frame/60
|
||||
elseif self.timing then
|
||||
S.time=S.time+dt
|
||||
end
|
||||
end
|
||||
while self.trigFrame>=1 do
|
||||
if self.alive then
|
||||
if self.streamProgress then
|
||||
local frameDelta
|
||||
if self.type=='remote'then
|
||||
@@ -2238,14 +2244,9 @@ function Player:update(dt)
|
||||
update_alive(self)
|
||||
end
|
||||
end
|
||||
S.time=self.stat.frame/60
|
||||
else
|
||||
if self.timing then S.time=S.time+dt end
|
||||
update_alive(self)
|
||||
end
|
||||
else
|
||||
update_dead(self)
|
||||
end
|
||||
self.trigFrame=self.trigFrame-1
|
||||
end
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user