Fix low tickrate eye lerping (#21001)

This commit is contained in:
Leon Friedrich
2023-10-16 16:26:45 +11:00
committed by GitHub
parent 687ceee4ed
commit 58ae37957e

View 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;
}