-#include "quakedef.h"
-dlight_t cl_dlights[MAX_DLIGHTS];
+#include "quakedef.h"
/*
===============
int i;
dlight_t *dl;
+ /*
// first look for an exact key match
if (ent)
{
if (dl->ent == ent)
goto dlightsetup;
}
+ */
// then look for anything else
dl = cl_dlights;
return;
dlightsetup:
+ //Con_Printf("dlight %i : %f %f %f : %f %f %f\n", i, org[0], org[1], org[2], red * radius, green * radius, blue * radius);
memset (dl, 0, sizeof(*dl));
- dl->ent = ent;
+ //dl->ent = ent;
VectorCopy(org, dl->origin);
dl->radius = radius;
dl->color[0] = red;
dl->color[1] = green;
dl->color[2] = blue;
dl->decay = decay;
- dl->die = cl.time + lifetime;
+ if (lifetime)
+ dl->die = cl.time + lifetime;
+ else
+ dl->die = 0;
}
}
}
-