Fix a couple gcc warnings
authorknghtbrd <knghtbrd@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 Apr 2001 03:44:45 +0000 (03:44 +0000)
committerknghtbrd <knghtbrd@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 Apr 2001 03:44:45 +0000 (03:44 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@185 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c
r_part.c

index a3e552f..d363dc2 100644 (file)
@@ -278,7 +278,7 @@ void R_BuildLightMap (msurface_t *surf, byte *dest, int stride)
        lightmap = surf->samples;
 
 // set to full bright if no light data
-       if (currententity && currententity->effects & EF_FULLBRIGHT || !cl.worldmodel->lightdata)
+       if ((currententity && currententity->effects & EF_FULLBRIGHT) || !cl.worldmodel->lightdata)
        {
                bl = blocklights;
                for (i=0 ; i<size ; i++)
index fa18369..86c33d8 100644 (file)
--- a/r_part.c
+++ b/r_part.c
@@ -1239,6 +1239,8 @@ void R_MoveParticles (void)
                        if (p->alpha < 64)
                                p->die = -1;
                        break;
+               default:
+                       break;
                }
 
                // LordHavoc: immediate removal of unnecessary particles (must be done to ensure compactor below operates properly in all cases)