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
{
timerlink = &(*timerlink)->next;
if (timer->entnum)
/* if (timer->entnum>0)
{
if (timer->entnum >= cl.maxlerpents)
continue;
le = &cl.lerpents[timer->entnum];
if (le->sequence != cl.lerpentssequence)
continue;
// VectorCopy(le->origin, timer->origin);
}
if (timer->entnum < cl.maxlerpents)
{
le = &cl.lerpents[timer->entnum];
if (le->sequence == cl.lerpentssequence)
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);
}
}

View File

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