diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cgame/cg_view.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/cgame/cg_view.c b/src/cgame/cg_view.c index e699b0c8..bc331133 100644 --- a/src/cgame/cg_view.c +++ b/src/cgame/cg_view.c @@ -309,10 +309,15 @@ void CG_OffsetThirdPersonView( void ) vec3_t killerPos; killerEntNum = cg.predictedPlayerState.stats[ STAT_VIEWLOCK ]; - VectorCopy( cg_entities[ killerEntNum ].lerpOrigin, killerPos ); + + // already looking at ourself + if( killerEntNum != cg.snap->ps.clientNum ) + { + VectorCopy( cg_entities[ killerEntNum ].lerpOrigin, killerPos ); - VectorSubtract( killerPos, cg.refdef.vieworg, killerPos ); - vectoangles( killerPos, cg.refdefViewAngles ); + VectorSubtract( killerPos, cg.refdef.vieworg, killerPos ); + vectoangles( killerPos, cg.refdefViewAngles ); + } } // get and rangecheck cg_thirdPersonRange |