mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-04-14 13:40:02 +03:00
Fixed a bug in spectator move with no apply friction when stopped
This commit is contained in:
parent
a47d55823f
commit
11638cbb21
@ -1711,11 +1711,14 @@ void PM_SpectatorMove()
|
||||
currentspeed = DotProduct(pmove->velocity, wishdir);
|
||||
|
||||
addspeed = wishspeed - currentspeed;
|
||||
if (addspeed <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
if (addspeed <= 0)
|
||||
return;
|
||||
#else
|
||||
if (addspeed > 0)
|
||||
#endif
|
||||
{
|
||||
accelspeed = pmove->movevars->accelerate * pmove->frametime * wishspeed;
|
||||
if (accelspeed > addspeed)
|
||||
{
|
||||
@ -1726,6 +1729,7 @@ void PM_SpectatorMove()
|
||||
{
|
||||
pmove->velocity[i] += accelspeed * wishdir[i];
|
||||
}
|
||||
}
|
||||
|
||||
// move
|
||||
VectorMA(pmove->origin, pmove->frametime, pmove->velocity, pmove->origin);
|
||||
|
Loading…
x
Reference in New Issue
Block a user