git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@174
d7cf8633-e32d-0410-b094-
e92efae38249
}
// 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;