From: cloudwalk Date: Sat, 30 May 2020 19:59:10 +0000 (+0000) Subject: Fix compile warning with bitwise operation X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fe724c63537e6fc753412a36476b1e970fa77ecd;p=xonotic%2Fdarkplaces.git Fix compile warning with bitwise operation git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12609 d7cf8633-e32d-0410-b094-e92efae38249 --- 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)