summaryrefslogtreecommitdiff
path: root/src/cgame/cg_players.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_players.c')
-rw-r--r--src/cgame/cg_players.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c
index d1a361d8..fd186145 100644
--- a/src/cgame/cg_players.c
+++ b/src/cgame/cg_players.c
@@ -1351,7 +1351,9 @@ static void CG_PlayerWWSmoothing( centity_t *cent, vec3_t in[ 3 ], vec3_t out[ 3
vec3_t inAxis[ 3 ], lastAxis[ 3 ], outAxis[ 3 ];
//set surfNormal
- if( !( es->eFlags & EF_WALLCLIMBCEILING ) )
+ if( !(es->eFlags & EF_WALLCLIMB ) )
+ VectorCopy( refNormal, surfNormal );
+ else if( !( es->eFlags & EF_WALLCLIMBCEILING ) )
VectorCopy( es->angles2, surfNormal );
else
VectorCopy( ceilingNormal, surfNormal );
@@ -2274,10 +2276,13 @@ void CG_Player( centity_t *cent )
//
// add the gun / barrel / flash
//
- if( !ci->nonsegmented )
- CG_AddPlayerWeapon( &torso, NULL, cent );
- else
- CG_AddPlayerWeapon( &legs, NULL, cent );
+ if( es->weapon != WP_NONE )
+ {
+ if( !ci->nonsegmented )
+ CG_AddPlayerWeapon( &torso, NULL, cent );
+ else
+ CG_AddPlayerWeapon( &legs, NULL, cent );
+ }
CG_PlayerUpgrades( cent, &torso );