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