git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6092
d7cf8633-e32d-0410-b094-
e92efae38249
float forward;
matrix4x4_t tempmatrix;
- while (cl_activebeams > 0 && !cl_beams[cl_activebeams - 1].model)
- cl_activeeffects--;
for (i = 0, b = cl_beams;i < cl_activebeams;i++, b++)
{
if (!b->model)
d -= 30;
}
}
+
+ while (cl_activebeams > 0 && !cl_beams[cl_activebeams - 1].model)
+ cl_activebeams--;
}
static void CL_RelinkQWNails(void)
break;
if (i < cl_max_beams)
{
+ cl_activebeams = max(cl_activebeams, i + 1);
b->entity = ent;
b->lightning = lightning;
b->model = m;