From 5db68d407624152fa00b4862b01ec4d1a34797bf Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Mon, 26 Sep 2022 01:40:52 +0300 Subject: [PATCH] Revert changes to LinearMove (#331) --- dlls/subs.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/dlls/subs.cpp b/dlls/subs.cpp index 400e05c8..118554d4 100644 --- a/dlls/subs.cpp +++ b/dlls/subs.cpp @@ -400,13 +400,6 @@ void CBaseToggle::LinearMove( Vector vecDest, float flSpeed ) // divide vector length by speed to get time to reach dest float flTravelTime = vecDestDelta.Length() / flSpeed; - if( flTravelTime < 0.05f ) - { - UTIL_SetOrigin( pev, m_vecFinalDest ); - LinearMoveDone(); - return; - } - // set nextthink to trigger a call to LinearMoveDone when dest is reached pev->nextthink = pev->ltime + flTravelTime; SetThink( &CBaseToggle::LinearMoveDone );