Skip to content

Commit

Permalink
Add REGAMEDLL_ADD scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Garey Akhmetshin committed Aug 28, 2024
1 parent 9998f68 commit c218b70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions regamedll/pm_shared/pm_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -896,6 +897,8 @@ void PM_WalkMove()

flRatio = pow(flRatio, flFrametimeRatio);
}
#endif

pmove->velocity[0] *= flRatio;
pmove->velocity[1] *= flRatio;
}
Expand Down

0 comments on commit c218b70

Please sign in to comment.