From 41a892148fc739c1497c8fd01a862a9d49ae69dd Mon Sep 17 00:00:00 2001 From: Roman Tetelman Date: Sat, 3 Oct 2009 11:51:25 +0000 Subject: oops, no more walljumping on slanted floors --- src/game/bg_pmove.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 ) ) { -- cgit