summaryrefslogtreecommitdiff
path: root/src/game/bg_pmove.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/bg_pmove.c')
-rw-r--r--src/game/bg_pmove.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index 85727d4d..5c0764d7 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -1691,9 +1691,9 @@ static void PM_GroundTrace( void ) {
//toggle wall climbing if holding crouch
if( pm->cmd.upmove < 0 && wcl[ pm->ps->clientNum ].lastUpmove >= 0 )
{
- if( !( pm->ps->stats[ STAT_STATE ] & SS_WALLCLIMBING ) && pm->cmd.upmove < 0 )
+ if( !( pm->ps->stats[ STAT_STATE ] & SS_WALLCLIMBING ) )
pm->ps->stats[ STAT_STATE ] |= SS_WALLCLIMBING;
- else if( pm->ps->stats[ STAT_STATE ] & SS_WALLCLIMBING && pm->cmd.upmove < 0 )
+ else if( pm->ps->stats[ STAT_STATE ] & SS_WALLCLIMBING )
pm->ps->stats[ STAT_STATE ] &= ~SS_WALLCLIMBING;
}