mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
remove some #if 1 bits (the #if, not the code:)
This commit is contained in:
parent
f423b8a8e0
commit
a68542f0e8
1 changed files with 2 additions and 4 deletions
|
@ -163,11 +163,9 @@ static void
|
|||
mark_surfaces (msurface_t *surf, vec3_t lightorigin, dlight_t *light, int bit)
|
||||
{
|
||||
float dist;
|
||||
#if 1
|
||||
float dist2, d;
|
||||
float maxdist = light->radius * light->radius;
|
||||
vec3_t impact;
|
||||
#endif
|
||||
|
||||
dist = PlaneDiff(lightorigin, surf->plane);
|
||||
if (surf->flags & SURF_PLANEBACK)
|
||||
|
@ -175,7 +173,7 @@ mark_surfaces (msurface_t *surf, vec3_t lightorigin, dlight_t *light, int bit)
|
|||
if ((dist < -0.25f && !(surf->flags & SURF_LIGHTBOTHSIDES))
|
||||
|| dist > light->radius)
|
||||
return;
|
||||
#if 1
|
||||
|
||||
dist2 = dist * dist;
|
||||
dist = -dist;
|
||||
VectorMA (light->origin, dist, surf->plane->normal, impact);
|
||||
|
@ -208,7 +206,7 @@ mark_surfaces (msurface_t *surf, vec3_t lightorigin, dlight_t *light, int bit)
|
|||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (surf->dlightframe != r_framecount) {
|
||||
surf->dlightbits = 0;
|
||||
surf->dlightframe = r_framecount;
|
||||
|
|
Loading…
Reference in a new issue