]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove useless double cvar checks, and always set chase_active to 0 if it's -1. This...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 1 Apr 2011 01:19:21 +0000 (04:19 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 1 Apr 2011 01:19:21 +0000 (04:19 +0300)
qcsrc/client/View.qc

index 8cf68feefba8ae970dfb2a9fbe9ccec298e51c95..4a0d48686cdb68e37c3ea14badf1c2ae987ae820 100644 (file)
@@ -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()