actually check that the entities match before returning the overridden beam

This commit is contained in:
Bill Currie 2002-09-09 15:56:29 +00:00
parent cc6c82007c
commit 82b2f30a20

View file

@ -193,7 +193,8 @@ CL_AllocBeam (int ent)
// override any beam with the same entity
for (i = 0, b = cl_beams; i < MAX_BEAMS; i++, b++)
return b;
if (b->entity == ent)
return b;
// find a free beam
for (i = 0, b = cl_beams; i < MAX_BEAMS; i++, b++)
if (!b->model || b->endtime < cl.time)