small tweak to item timers.

This commit is contained in:
Shpoike 2024-05-07 16:25:38 +01:00
parent 904d482627
commit 9abb3b479c
2 changed files with 8 additions and 10 deletions

View file

@ -4309,15 +4309,15 @@ void CL_LinkPacketEntities (void)
else else
{ {
timerlink = &(*timerlink)->next; timerlink = &(*timerlink)->next;
if (timer->entnum) /* if (timer->entnum>0)
{
if (timer->entnum < cl.maxlerpents)
{ {
if (timer->entnum >= cl.maxlerpents)
continue;
le = &cl.lerpents[timer->entnum]; le = &cl.lerpents[timer->entnum];
if (le->sequence != cl.lerpentssequence) if (le->sequence == cl.lerpentssequence)
continue; VectorCopy(le->origin, timer->origin);
// VectorCopy(le->origin, timer->origin);
} }
}*/
R_AddItemTimer(timer->origin, cl.time*90 + timer->origin[0] + timer->origin[1] + timer->origin[2], timer->radius, (cl.time - timer->start) / timer->duration, timer->rgb); R_AddItemTimer(timer->origin, cl.time*90 + timer->origin[0] + timer->origin[1] + timer->origin[2], timer->radius, (cl.time - timer->start) / timer->duration, timer->rgb);
} }
} }

View file

@ -6906,8 +6906,6 @@ static void CL_ParseItemTimer(void)
} }
VectorCopy(org, timer->origin); VectorCopy(org, timer->origin);
timer->start = cl.time;
timer->duration = timeout;
timer->radius = radius; timer->radius = radius;
timer->duration = timeout; timer->duration = timeout;
timer->entnum = entnum; timer->entnum = entnum;