From 4721fd203535e08f5fbbcf8f8c6a442cd7103e16 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Wed, 8 Jul 2020 02:59:07 +0200 Subject: [PATCH] The fix was inside us all along. --- .../Components/Movement/SharedPlayerInputMoverComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/GameObjects/Components/Movement/SharedPlayerInputMoverComponent.cs b/Content.Shared/GameObjects/Components/Movement/SharedPlayerInputMoverComponent.cs index edd3e03d37..e12c56a42e 100644 --- a/Content.Shared/GameObjects/Components/Movement/SharedPlayerInputMoverComponent.cs +++ b/Content.Shared/GameObjects/Components/Movement/SharedPlayerInputMoverComponent.cs @@ -188,7 +188,7 @@ namespace Content.Shared.GameObjects.Components.Movement _lastInputSubTick = 0; } - if (_lastInputSubTick >= subTick) + if (subTick >= _lastInputSubTick) { var fraction = (subTick - _lastInputSubTick) / (float) ushort.MaxValue;