diff options
Diffstat (limited to 'src/cgame/cg_view.c')
-rw-r--r-- | src/cgame/cg_view.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cgame/cg_view.c b/src/cgame/cg_view.c index 68f9287..eb6e88d 100644 --- a/src/cgame/cg_view.c +++ b/src/cgame/cg_view.c @@ -556,6 +556,9 @@ void CG_InduceViewQuake( vec3_t src, float mag ) dist = Distance( src, cg.refdef.vieworg ); cg.viewQuake += mag / dist / dist * 1000.0f; } + + if( cg.viewQuake > cg_viewQuakeLimit.value ) + cg.viewQuake = cg_viewQuakeLimit.value; } /* |