git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12206
d7cf8633-e32d-0410-b094-
e92efae38249
{
vec3_t dir, pos;
float len, dec, qd;
{
vec3_t dir, pos;
float len, dec, qd;
- int smoke, blood, bubbles, r, color;
+ int smoke, blood, bubbles, r, color, count;
if (spawndlight && r_refdef.scene.numlights < MAX_DLIGHTS)
{
if (spawndlight && r_refdef.scene.numlights < MAX_DLIGHTS)
{
VectorSubtract(originmaxs, originmins, dir);
len = VectorNormalizeLength(dir);
VectorSubtract(originmaxs, originmins, dir);
len = VectorNormalizeLength(dir);
if (ent)
{
dec = -ent->persistent.trail_time;
if (ent)
{
dec = -ent->persistent.trail_time;
blood = cl_particles.integer && cl_particles_blood.integer;
bubbles = cl_particles.integer && cl_particles_bubbles.integer && !cl_particles_quake.integer && (CL_PointSuperContents(pos) & (SUPERCONTENTS_WATER | SUPERCONTENTS_SLIME));
qd = 1.0f / cl_particles_quality.value;
blood = cl_particles.integer && cl_particles_blood.integer;
bubbles = cl_particles.integer && cl_particles_bubbles.integer && !cl_particles_quake.integer && (CL_PointSuperContents(pos) & (SUPERCONTENTS_WATER | SUPERCONTENTS_SLIME));
qd = 1.0f / cl_particles_quality.value;
+ while (len >= 0 && ++count <= 16384)