Skip to content

Commit

Permalink
Update cbase.cpp
Browse files Browse the repository at this point in the history
use float type
  • Loading branch information
s1lentq authored Nov 26, 2023
1 parent ec82ccb commit 19b603e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regamedll/dlls/cbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ BOOL CBaseEntity::IsInWorld()

// speed
#ifdef REGAMEDLL_FIXES
double maxvel = g_psv_maxvelocity->value;
float maxvel = g_psv_maxvelocity->value;
if (pev->velocity.x > maxvel || pev->velocity.y > maxvel || pev->velocity.z > maxvel)
{
return FALSE;
Expand Down

0 comments on commit 19b603e

Please sign in to comment.