From c9d579b1b5b34ce7c4ad6c281af9b407d83a3174 Mon Sep 17 00:00:00 2001 From: Joseph Carter Date: Fri, 26 May 2000 03:40:22 +0000 Subject: [PATCH] if (0) is evil. If you're going to comment it out, comment it out or use something like #if 0! --- source/gl_rsurf.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/gl_rsurf.c b/source/gl_rsurf.c index 237fd09..9392ec0 100644 --- a/source/gl_rsurf.c +++ b/source/gl_rsurf.c @@ -369,10 +369,10 @@ void R_DrawSequentialPoly (msurface_t *s) // // normal lightmaped poly // -// if ((!(s->flags & (SURF_DRAWSKY|SURF_DRAWTURB))) -// && ((r_viewleaf->contents!=CONTENTS_EMPTY && (s->flags & SURF_UNDERWATER)) || -// (r_viewleaf->contents==CONTENTS_EMPTY && !(s->flags & SURF_UNDERWATER)))) - if (0) +#if 0 + if ((!(s->flags & (SURF_DRAWSKY|SURF_DRAWTURB))) + && ((r_viewleaf->contents!=CONTENTS_EMPTY && (s->flags & SURF_UNDERWATER)) || + (r_viewleaf->contents==CONTENTS_EMPTY && !(s->flags & SURF_UNDERWATER)))) { p = s->polys; @@ -402,6 +402,7 @@ void R_DrawSequentialPoly (msurface_t *s) return; } +#endif // // subdivided water surface warp