From 39f767d655447ac5fe406eecd4d6bf91a1dba01d Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Tue, 18 May 2021 21:35:06 +0200 Subject: [PATCH] Fixed water friction condition --- deps/botlib/be_aas_move.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/botlib/be_aas_move.c b/deps/botlib/be_aas_move.c index 6b8b9b3..93561ef 100644 --- a/deps/botlib/be_aas_move.c +++ b/deps/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);