From c218b708e41041ac87b305dd97faf1f538a1e9a1 Mon Sep 17 00:00:00 2001 From: Garey Akhmetshin Date: Wed, 28 Aug 2024 13:53:31 +0500 Subject: [PATCH] Add REGAMEDLL_ADD scope --- regamedll/pm_shared/pm_shared.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/regamedll/pm_shared/pm_shared.cpp b/regamedll/pm_shared/pm_shared.cpp index 4ba2676d9..2bb30c66a 100644 --- a/regamedll/pm_shared/pm_shared.cpp +++ b/regamedll/pm_shared/pm_shared.cpp @@ -887,6 +887,7 @@ void PM_WalkMove() { real_t flRatio = (100 - pmove->fuser2 * 0.001 * 19) * 0.01; +#ifdef REGAMEDLL_ADD // change stamina restoration speed by fps reference if (stamina_restore_rate.value > 0.0f) { @@ -896,6 +897,8 @@ void PM_WalkMove() flRatio = pow(flRatio, flFrametimeRatio); } +#endif + pmove->velocity[0] *= flRatio; pmove->velocity[1] *= flRatio; }