]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make slightly more readable
authorSamual <samual@xonotic.org>
Mon, 29 Aug 2011 00:48:28 +0000 (20:48 -0400)
committerSamual <samual@xonotic.org>
Mon, 29 Aug 2011 00:48:28 +0000 (20:48 -0400)
qcsrc/client/View.qc

index 6e8c8639e5e3ff8b446e417fe2aa254524f0081b..3347c360a83e70210b99329bbf236376e49191d8 100644 (file)
@@ -913,7 +913,9 @@ void CSQC_UpdateView(float w, float h)
                float sharpen_intensity, strength_finished = getstatf(STAT_STRENGTH_FINISHED), invincible_finished = getstatf(STAT_INVINCIBLE_FINISHED);
                if (strength_finished - time > 0) { sharpen_intensity += (strength_finished - time); }
                if (invincible_finished - time > 0) { sharpen_intensity += (invincible_finished - time); }
+               
                sharpen_intensity = bound(0, ((getstati(STAT_HEALTH) > 0) ? sharpen_intensity : 0), 5); // Check to see if player is alive (if not, set 0) - also bound to fade out starting at 5 seconds.
+               
                if(autocvar_hud_powerup && sharpen_intensity > 0 && autocvar_chase_active >= 0) // not while the event chase camera is active
                {
                        if(sharpen_intensity != old_sharpen_intensity) // reduce cvar_set spam as much as possible