From 90d51b979a0dc714fd7fd9510394ee9b01508455 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 29 Sep 2021 15:12:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=8E=A9=E5=AE=B6=E8=AE=A1?= =?UTF-8?q?=E6=97=B6=E5=99=A8=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/player.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parts/player/player.lua b/parts/player/player.lua index a00a7b5f..4edeab04 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -2212,14 +2212,12 @@ 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.timing then S.time=S.time+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 - S.time=self.frameRun/60 local frameDelta=self.type=='remote'and (self.stream[#self.stream-1]or 0)-self.frameRun or 0 for _=1, frameDelta<26 and 1 or @@ -2233,7 +2231,9 @@ function Player:update(dt) update_streaming(self) update_alive(self) end + S.time=self.stat.frame/60 else + if self.timing then S.time=S.time+dt end update_alive(self) end else