mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix friction in AAS_ClientMovementPrediction
Ground and water friction were reversed.
This commit is contained in:
parent
d2b1d124d4
commit
9c4c363ccc
1 changed files with 1 additions and 1 deletions
|
@ -553,7 +553,7 @@ int AAS_ClientMovementPrediction(struct aas_clientmove_s *move,
|
||||||
//if on the ground or swimming
|
//if on the ground or swimming
|
||||||
if (onground || swimming)
|
if (onground || swimming)
|
||||||
{
|
{
|
||||||
friction = swimming ? phys_friction : phys_waterfriction;
|
friction = swimming ? phys_waterfriction : phys_friction;
|
||||||
//apply friction
|
//apply friction
|
||||||
VectorScale(frame_test_vel, 1/frametime, frame_test_vel);
|
VectorScale(frame_test_vel, 1/frametime, frame_test_vel);
|
||||||
AAS_ApplyFriction(frame_test_vel, friction, phys_stopspeed, frametime);
|
AAS_ApplyFriction(frame_test_vel, friction, phys_stopspeed, frametime);
|
||||||
|
|
Loading…
Reference in a new issue