[ioquake3] 11/21: Fix friction in AAS_ClientMovementPrediction

Simon McVittie smcv at debian.org
Fri Aug 4 20:39:13 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian/master
in repository ioquake3.

commit 9c4c363cccf0d891c93500d392fa9d80d3070d27
Author: Tobias Kuehnhammer <kuehnhammertobias at gmail.com>
Date:   Wed Aug 2 20:18:43 2017 +0200

    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 9ce95c6..8ff56aa 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git



More information about the Pkg-games-commits mailing list