From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Mon, 16 Oct 2023 05:26:45 +0000 (+1100) Subject: Fix low tickrate eye lerping (#21001) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=58ae37957e2921becdf6f3dad42af16bb27fcd2c;p=space-station-14.git Fix low tickrate eye lerping (#21001) --- diff --git a/Content.Client/Eye/EyeLerpingSystem.cs b/Content.Client/Eye/EyeLerpingSystem.cs index 79af9e719b..8e54196b81 100644 --- a/Content.Client/Eye/EyeLerpingSystem.cs +++ b/Content.Client/Eye/EyeLerpingSystem.cs @@ -132,7 +132,7 @@ public sealed class EyeLerpingSystem : EntitySystem return content.TargetZoom; } - var change = diff * 8f * frameTime; + var change = diff * Math.Min(8f * frameTime, 1); return eye.Zoom + change; }