Fix friction in AAS_ClientMovementPrediction

Ground and water friction were reversed.
This commit is contained in:
Tobias Kuehnhammer authored and Zack Middleton committed 2017-08-02 15:05:46 -05:00
1 parent d2b1d124d4
commit 9c4c363ccc
1 file changed
+1 -1
+1 -1
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);