From 28a0dd8b97adb3f767f30c874d0895771d59ab87 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 26 Sep 2021 22:03:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=BF=9C=E7=A8=8B=E7=8E=A9?= =?UTF-8?q?=E5=AE=B6=E6=9B=B4=E6=96=B0=E7=9A=84=E6=97=B6=E9=97=B4=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= 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 20cfe641..bebbc01a 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -2104,7 +2104,7 @@ local function update_alive(P) _updateMisc(P) -- P:setPosition(640-150-(30*(P.curX+P.cur.sc[2])-15),30*(P.curY+P.cur.sc[1])+15-300+(ENV.smooth and P.ghoY~=P.curY and(P.dropDelay/ENV.drop-1)*30 or 0)) end -local function update_remote_alive(P,dt) +local function update_remote_alive(P) local frameRate=(P.stream[#P.stream-1]or 0)-P.frameRun frameRate= frameRate<26 and 1 or @@ -2152,7 +2152,7 @@ local function update_remote_alive(P,dt) end P.streamProgress=P.streamProgress+2 else--No event now, run one frame - update_alive(P,dt/frameRate) + update_alive(P,1/60) P.stat.time=P.frameRun/60 end else--Pause state, no actions, quit loop