]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix compile warning with bitwise operation
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 30 May 2020 19:59:10 +0000 (19:59 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 30 May 2020 19:59:10 +0000 (19:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12609 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c

index 746632b3287a9bb2c86f43766fc121464f17434e..62d51e3208b79e273e1d3bfe4e3e4d057c890157 100644 (file)
@@ -1338,7 +1338,7 @@ void R_Q1BSP_DrawShadowMap(int side, entity_render_t *ent, const vec3_t relative
        for (modelsurfacelistindex = 0;modelsurfacelistindex < modelnumsurfaces;modelsurfacelistindex++)
        {
                surface = model->data_surfaces + modelsurfacelist[modelsurfacelistindex];
-               if (surfacesides && !(surfacesides[modelsurfacelistindex] && (1 << side)))
+               if (surfacesides && !(surfacesides[modelsurfacelistindex] & (1 << side)))
                        continue;
                rsurface.texture = R_GetCurrentTexture(surface->texture);
                if (rsurface.texture->currentmaterialflags & MATERIALFLAG_NOSHADOW)