From fe724c63537e6fc753412a36476b1e970fa77ecd Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sat, 30 May 2020 19:59:10 +0000 Subject: [PATCH] Fix compile warning with bitwise operation git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12609 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rsurf.c b/gl_rsurf.c index 746632b3..62d51e32 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -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) -- 2.39.2