From 52edfe59d3a9fdcef2ab3324e6f37a81c0aabd9d Mon Sep 17 00:00:00 2001 From: RallyBlock Date: Mon, 9 Nov 2026 20:49:29 -0500 Subject: [PATCH] Throttle CamSync only; always apply local orbit --- client.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client.cs b/client.cs index 5e16a37..c2e3ff9 100644 --- a/client.cs +++ b/client.cs @@ -592,12 +592,7 @@ function RPGClient_ApplyCamera(%forceSync) return; } %now = getSimTime(); - if (!%forceSync && %now - $RPGClient::LastCamSync < 40) - { - return; - } - $RPGClient::LastCamSync = %now; - commandToServer('RPG_CamSync', $RPGClient::Yaw, $RPGClient::Dist, 0, 0); + %doSync = %forceSync || %now - $RPGClient::LastCamSync >= 40; %body = %conn.Player; if (!isObject(%body)) { @@ -631,6 +626,11 @@ function RPGClient_ApplyCamera(%forceSync) %cam.setTransform(%xfm); %cam.setOrbitMode(%body, %xfm, 0, 32, $RPGClient::Dist); %cam.setOrbitDist($RPGClient::Dist); + if (%doSync) + { + $RPGClient::LastCamSync = %now; + commandToServer('RPG_CamSync', $RPGClient::Yaw, $RPGClient::Dist, 0, 0); + } } function RPGClient_ScheduleCamera()