diff options
author | Tim Angus <tim@ngus.net> | 2001-04-04 01:35:28 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2001-04-04 01:35:28 +0000 |
commit | 6926447de7f3e0ccdce60b57fa1e1d0e3c4ce3a5 (patch) | |
tree | 786334d5a7a6129217cbcfdb789b9c09b51b80b9 /src/game/bg_pmove.c | |
parent | 2210319386ab172899bc6ff56c0523f4d7b33a27 (diff) |
Small code tidyup
Diffstat (limited to 'src/game/bg_pmove.c')
-rw-r--r-- | src/game/bg_pmove.c | 24 |
1 files changed, 2 insertions, 22 deletions
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++) { |