summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Tetelman <kevlarman@gmail.com>2009-10-03 11:51:25 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:26 +0000
commit41a892148fc739c1497c8fd01a862a9d49ae69dd (patch)
treecc0fb6f2b9fde085c815f7823a42d27cf5d2473c
parentb1d56b466ca3b70bd6927f854cc7a8455d435699 (diff)
oops, no more walljumping on slanted floors
-rw-r--r--src/game/bg_pmove.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index fa025530..a45b4b65 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -650,7 +650,8 @@ static qboolean PM_CheckWallJump( void )
pm->trace( &trace, pm->ps->origin, pm->mins, pm->maxs, point, pm->ps->clientNum, pm->tracemask );
if( trace.fraction < 1.0f &&
- !( trace.surfaceFlags & ( SURF_SKY | SURF_SLICK ) ) )
+ !( trace.surfaceFlags & ( SURF_SKY | SURF_SLICK ) ) &&
+ trace.plane.normal[ 2 ] < MIN_WALK_NORMAL )
{
if( !VectorCompare( trace.plane.normal, pm->ps->grapplePoint ) )
{