git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5951
d7cf8633-e32d-0410-b094-
e92efae38249
f = cl.time * 10;
i = (int)floor(f);
frac = f - i;
- for (j = 0;j < MAX_LIGHTSTYLES;j++)
+ for (j = 0;j < cl_max_lightstyle;j++)
{
if (!cl_lightstyle || !cl_lightstyle[j].length)
{
i = PRVM_G_FLOAT(OFS_PARM0);
c = PRVM_G_STRING(OFS_PARM1);
- if (i >= MAX_LIGHTSTYLES)
+ if (i >= cl_max_lightstyle)
PF_WARNING("VM_CL_lightstyle >= MAX_LIGHTSTYLES\n");
strlcpy (cl_lightstyle[i].map, MSG_ReadString(), sizeof (cl_lightstyle[i].map));
cl_lightstyle[i].map[MAX_STYLESTRING - 1] = 0;