Skip to content

Commit

Permalink
Merge pull request #793 from edge-classic/render-warning-fixes
Browse files Browse the repository at this point in the history
Fix some recent compilation warnings
  • Loading branch information
pbdot authored Jan 5, 2025
2 parents d12cd10 + 54c9483 commit cd50c49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source_files/edge/r_render.cc
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ static void DrawTile(Seg *seg, DrawFloor *dfloor, float lz1, float lz2, float rz
}

int32_t blending = GetBlending(surf->translucency, (ImageOpacity)image->opacity_);
bool opaque = !seg->back_sector || !(blending * kBlendingAlpha);
bool opaque = !seg->back_sector || !(blending & kBlendingAlpha);

// check for horizontal sliders
if ((flags & kWallTileMidMask) && seg->linedef->slide_door)
Expand Down
2 changes: 1 addition & 1 deletion source_files/edge/r_things.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ static bool RenderThing(DrawThing *dthing, bool solid)
blending |= kBlendingAlpha;
}

if (solid && (blending & kBlendingAlpha) || !solid && !(blending & kBlendingAlpha))
if ((solid && (blending & kBlendingAlpha)) || (!solid && !(blending & kBlendingAlpha)))
{
return false;
}
Expand Down

0 comments on commit cd50c49

Please sign in to comment.