From 9c4c363cccf0d891c93500d392fa9d80d3070d27 Mon Sep 17 00:00:00 2001 From: Tobias Kuehnhammer Date: Wed, 2 Aug 2017 20:18:43 +0200 Subject: [PATCH] Fix friction in AAS_ClientMovementPrediction Ground and water friction were reversed. --- code/botlib/be_aas_move.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/botlib/be_aas_move.c b/code/botlib/be_aas_move.c index 9ce95c6c..8ff56aa9 100644 --- a/code/botlib/be_aas_move.c +++ b/code/botlib/be_aas_move.c @@ -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);