]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix low tickrate eye lerping (#21001)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Mon, 16 Oct 2023 05:26:45 +0000 (16:26 +1100)
committerGitHub <noreply@github.com>
Mon, 16 Oct 2023 05:26:45 +0000 (23:26 -0600)
Content.Client/Eye/EyeLerpingSystem.cs

index 79af9e719b8e0c072f8f6d981ec8e024c0228902..8e54196b81d40de432487657df44a6844d17d9f9 100644 (file)
@@ -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;
     }