From 12f4e9bc7934f74b63c1023164d0f926a4ff4a2a Mon Sep 17 00:00:00 2001 From: s1lentq Date: Sat, 17 Aug 2024 04:55:17 +0700 Subject: [PATCH] remove unnecessary version consistency for some player movement code --- regamedll/pm_shared/pm_shared.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regamedll/pm_shared/pm_shared.cpp b/regamedll/pm_shared/pm_shared.cpp index 6ab253970..fa106c09b 100644 --- a/regamedll/pm_shared/pm_shared.cpp +++ b/regamedll/pm_shared/pm_shared.cpp @@ -898,7 +898,7 @@ void PM_WalkMove() #ifdef REGAMEDLL_ADD // Player can speed up the run if '+speed' button is pressed - if (pmoveplayer->m_MovementVersion.IsAtLeast(1, 0) && (pmove->cmd.buttons & IN_RUN) && pmove->fuser3 > 0) + if ((pmove->cmd.buttons & IN_RUN) && pmove->fuser3 > 0) { fmove *= pmove->fuser3; smove *= pmove->fuser3; @@ -1704,7 +1704,7 @@ void PM_SpectatorMove() #ifdef REGAMEDLL_ADD // Observer can accelerate in air if '+speed' button is pressed - if (pmoveplayer->m_MovementVersion.IsAtLeast(1, 0) && pmove->cmd.buttons & IN_RUN) + if (pmove->cmd.buttons & IN_RUN) { float flAirAccelerate = (pmove->fuser3 > 0.0f) ? pmove->fuser3 : max(pmove->movevars->airaccelerate / 100.0f, 7.0f); fmove *= flAirAccelerate; @@ -2368,7 +2368,7 @@ void PM_NoClip() #ifdef REGAMEDLL_ADD // Player with noclip can accelerate in air if '+speed' button is pressed - if (pmoveplayer->m_MovementVersion.IsAtLeast(1, 0) && (pmove->cmd.buttons & IN_RUN) && pmove->fuser3 > 0) + if ((pmove->cmd.buttons & IN_RUN) && pmove->fuser3 > 0) { float flAirAccelerate = pmove->fuser3; fmove *= flAirAccelerate;