From 6926447de7f3e0ccdce60b57fa1e1d0e3c4ce3a5 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Wed, 4 Apr 2001 01:35:28 +0000 Subject: Small code tidyup --- src/game/bg_pmove.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'src/game/bg_pmove.c') diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index 0b50f4a2..395b1983 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -1390,29 +1390,9 @@ static void PM_GroundClimbTrace( void ) CrossProduct( surfNormal, right, movedir ); VectorNormalize( movedir ); - //rotate this direction vector based upon what direction the player is /trying/ to move to - /*if( pm->cmd.forwardmove || pm->cmd.rightmove ) - { - if( ( pm->cmd.rightmove < 0 ) && ( pm->cmd.forwardmove > 0 ) ) - RotatePointAroundVector( movedir, surfNormal, movedir, 45 ); - else if( ( pm->cmd.rightmove < 0 ) && ( pm->cmd.forwardmove == 0 ) ) - RotatePointAroundVector( movedir, surfNormal, movedir, 90 ); - else if( ( pm->cmd.rightmove < 0 ) && ( pm->cmd.forwardmove < 0 ) ) - RotatePointAroundVector( movedir, surfNormal, movedir, 135 ); - else if( ( pm->cmd.rightmove == 0 ) && ( pm->cmd.forwardmove < 0 ) ) - RotatePointAroundVector( movedir, surfNormal, movedir, 180 ); - else if( ( pm->cmd.rightmove > 0 ) && ( pm->cmd.forwardmove < 0 ) ) - RotatePointAroundVector( movedir, surfNormal, movedir, -135 ); - else if( ( pm->cmd.rightmove > 0 ) && ( pm->cmd.forwardmove == 0 ) ) - RotatePointAroundVector( movedir, surfNormal, movedir, -90 ); - else if( ( pm->cmd.rightmove > 0 ) && ( pm->cmd.forwardmove > 0 ) ) - RotatePointAroundVector( movedir, surfNormal, movedir, -45 ); - }*/ - - //TA: 3am, code make no sense, but code work... leave it be... + //TA: FIXME: this could be improved to include strafing if( pm->cmd.forwardmove < 0 ) - VectorInverse( movedir ); - //RotatePointAroundVector( movedir, surfNormal, movedir, 180 ); + VectorNegate( movedir, movedir ); for(i = 0; i <= 3; i++) { -- cgit