]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
server speed controls fade out of damage/bonus flashs now (more reliable timedemo)
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 3 Mar 2001 22:02:34 +0000 (22:02 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 3 Mar 2001 22:02:34 +0000 (22:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@174 d7cf8633-e32d-0410-b094-e92efae38249

view.c

diff --git a/view.c b/view.c
index 22ddf75d48e2ffa049be64c347cc8febb0142dcf..bcff7fff80468c62ad2399af0a1cf32506120f76 100644 (file)
--- a/view.c
+++ b/view.c
@@ -529,12 +529,12 @@ void V_UpdateBlends (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;