Fix friction in AAS_ClientMovementPrediction

Ground and water friction were reversed.
This commit is contained in:
Tobias Kuehnhammer 2017-08-02 20:18:43 +02:00 committed by Zack Middleton
parent d2b1d124d4
commit 9c4c363ccc

View file

@ -553,7 +553,7 @@ int AAS_ClientMovementPrediction(struct aas_clientmove_s *move,
//if on the ground or swimming
if (onground || swimming)
{
friction = swimming ? phys_friction : phys_waterfriction;
friction = swimming ? phys_waterfriction : phys_friction;
//apply friction
VectorScale(frame_test_vel, 1/frametime, frame_test_vel);
AAS_ApplyFriction(frame_test_vel, friction, phys_stopspeed, frametime);