Skip to content

Commit

Permalink
Make IsInWorld behave like SV_CheckVelocity: less/greater without equal
Browse files Browse the repository at this point in the history
  • Loading branch information
dystopm committed Oct 30, 2023
1 parent 1e4762e commit b0acc61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regamedll/dlls/cbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b0acc61

Please sign in to comment.