From b0acc615fc7191bc848e8e4f2852d3cfb4f1ec56 Mon Sep 17 00:00:00 2001 From: dystopm Date: Sun, 29 Oct 2023 23:29:55 -0300 Subject: [PATCH] Make IsInWorld behave like SV_CheckVelocity: less/greater without equal --- regamedll/dlls/cbase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regamedll/dlls/cbase.cpp b/regamedll/dlls/cbase.cpp index 9b7da4da0..0fbdb685f 100644 --- a/regamedll/dlls/cbase.cpp +++ b/regamedll/dlls/cbase.cpp @@ -872,11 +872,11 @@ BOOL CBaseEntity::IsInWorld() #endif // speed - if (pev->velocity.x >= maxvel || pev->velocity.y >= maxvel || pev->velocity.z >= maxvel) + if (pev->velocity.x > maxvel || pev->velocity.y > maxvel || pev->velocity.z > maxvel) { return FALSE; } - if (pev->velocity.x <= -maxvel || pev->velocity.y <= -maxvel || pev->velocity.z <= -maxvel) + if (pev->velocity.x < -maxvel || pev->velocity.y < -maxvel || pev->velocity.z < -maxvel) { return FALSE; }