From c88474a40a80a20b2075cb6e971dd63b85bad932 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 3 Feb 2003 03:51:41 +0000 Subject: * Fix to SCA_NOFOOTSTEPS --- src/game/bg_pmove.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index 4663d2bd..a528b484 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -1284,10 +1284,13 @@ static void PM_CrashLand( void ) if( pm->ps->stats[STAT_HEALTH] > 0 ) PM_AddEvent( EV_FALL_MEDIUM ); } - else if( delta > 7 ) - PM_AddEvent( EV_FALL_SHORT ); - else - PM_AddEvent( PM_FootstepForSurface( ) ); + else if( !BG_ClassHasAbility( pm->ps->stats[ STAT_PCLASS ], SCA_NOFOOTSTEPS ) ) + { + if( delta > 7 ) + PM_AddEvent( EV_FALL_SHORT ); + else + PM_AddEvent( PM_FootstepForSurface( ) ); + } } // start footstep cycle over -- cgit