fix damage indicator overflow after fastforward

break up shiftgametime() time jumps into 5-second jumps and five 1-second
jumps for the last five seconds

rename respawnoffset to lastdeath (because that's what it is)
rename clientside nextmillis to skipmillis (because that's what it does)
This commit is contained in:
ac-stef
2017-05-13 03:46:00 +02:00
parent e093b9f215
commit cf55e54faa
8 changed files with 20 additions and 19 deletions
+1 -1
View File
@@ -703,7 +703,7 @@ void damageblend(int n, void *p)
{
if(!damagescreen) return;
if(lastmillis > damageblendmillis || damageblendplayer != p) damageblendmillis = lastmillis;
damageblendmillis += n*damagescreenfactor;
damageblendmillis = min(damageblendmillis + n * damagescreenfactor, lastmillis + 3999);
damageblendplayer = p;
}