mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-04-14 05:30: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,20 +1711,24 @@ void PM_SpectatorMove()
|
|||||||
currentspeed = DotProduct(pmove->velocity, wishdir);
|
currentspeed = DotProduct(pmove->velocity, wishdir);
|
||||||
|
|
||||||
addspeed = wishspeed - currentspeed;
|
addspeed = wishspeed - currentspeed;
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
if (addspeed <= 0)
|
if (addspeed <= 0)
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
#else
|
||||||
|
if (addspeed > 0)
|
||||||
accelspeed = pmove->movevars->accelerate * pmove->frametime * wishspeed;
|
#endif
|
||||||
if (accelspeed > addspeed)
|
|
||||||
{
|
{
|
||||||
accelspeed = addspeed;
|
accelspeed = pmove->movevars->accelerate * pmove->frametime * wishspeed;
|
||||||
}
|
if (accelspeed > addspeed)
|
||||||
|
{
|
||||||
|
accelspeed = addspeed;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < 3; i++)
|
for (i = 0; i < 3; i++)
|
||||||
{
|
{
|
||||||
pmove->velocity[i] += accelspeed * wishdir[i];
|
pmove->velocity[i] += accelspeed * wishdir[i];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// move
|
// move
|
||||||
|
Loading…
x
Reference in New Issue
Block a user