]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - view.c
server speed controls fade out of damage/bonus flashs now (more reliable timedemo)
[xonotic/darkplaces.git] / view.c
diff --git a/view.c b/view.c
index 5b37040fa4e658741e37c83bb2f48b15e523c665..bcff7fff80468c62ad2399af0a1cf32506120f76 100644 (file)
--- a/view.c
+++ b/view.c
@@ -238,7 +238,7 @@ void V_DriftPitch (void)
 /*
 ============================================================================== 
  
-                                               PALETTE FLASHES 
+                                               SCREEN FLASHES 
  
 ============================================================================== 
 */ 
@@ -501,10 +501,10 @@ void V_CalcBlend (void)
 
 /*
 =============
-V_UpdatePalette
+V_UpdateBlends
 =============
 */
-void V_UpdatePalette (void)
+void V_UpdateBlends (void)
 {
        int             i, j;
        qboolean        new;
@@ -529,12 +529,12 @@ void V_UpdatePalette (void)
        }
        
 // drop the damage value
-       cl.cshifts[CSHIFT_DAMAGE].percent -= host_frametime*150;
+       cl.cshifts[CSHIFT_DAMAGE].percent -= (cl.time - cl.oldtime)*150;
        if (cl.cshifts[CSHIFT_DAMAGE].percent <= 0)
                cl.cshifts[CSHIFT_DAMAGE].percent = 0;
 
 // drop the bonus value
-       cl.cshifts[CSHIFT_BONUS].percent -= host_frametime*100;
+       cl.cshifts[CSHIFT_BONUS].percent -= (cl.time - cl.oldtime)*100;
        if (cl.cshifts[CSHIFT_BONUS].percent <= 0)
                cl.cshifts[CSHIFT_BONUS].percent = 0;