mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-21 19:41:14 +00:00
small tweak to item timers.
This commit is contained in:
parent
904d482627
commit
9abb3b479c
2 changed files with 8 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue