Fix friction in AAS_ClientMovementPrediction
Ground and water friction were reversed.
This commit is contained in:
1 parent
d2b1d124d4
commit
9c4c363ccc
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user