From: Mircea Kitsune Date: Fri, 1 Apr 2011 01:19:21 +0000 (+0300) Subject: Remove useless double cvar checks, and always set chase_active to 0 if it's -1. This... X-Git-Tag: xonotic-v0.5.0~268^2^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5dd9cd68d9db68adef7efeee9adf09980dc9677c;p=xonotic%2Fxonotic-data.pk3dir.git Remove useless double cvar checks, and always set chase_active to 0 if it's -1. This should make the code all ready now. --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 8cf68feef..4a0d48686 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -415,10 +415,9 @@ void CSQC_UpdateView(float w, float h) freeze_input_angles = input_angles; // event chase camera - if(spectatee_status >= 0 && (autocvar_cl_eventchase_death || autocvar_cl_eventchase_intermission)) - if(autocvar_chase_active <= 0) // greater than 0 means it's enabled manually + if(autocvar_chase_active <= 0) // greater than 0 means it's enabled manually, and this code is skipped { - if((autocvar_cl_eventchase_death && getstati(STAT_HEALTH) <= 0 && !intermission) || (autocvar_cl_eventchase_intermission && intermission)) + if(spectatee_status >= 0 && (autocvar_cl_eventchase_death && getstati(STAT_HEALTH) <= 0 && !intermission) || (autocvar_cl_eventchase_intermission && intermission)) { // We must enable chase_active to get a third person view (weapon viewmodel hidden and own player model showing). // Ideally, there should be another way to enable third person cameras, such as through R_SetView()