From 3692ef68b9983681f88a81cc79aac34f0461305c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 1 May 2023 16:10:25 +0200 Subject: [PATCH] placeSidewalls now set PPR::TRANSPARENT_WALL priority for walls with alpha --- graph.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graph.cpp b/graph.cpp index cd189c73..c2ea6b60 100644 --- a/graph.cpp +++ b/graph.cpp @@ -3754,6 +3754,8 @@ EX bool placeSidewall(cell *c, int i, int sidepar, const shiftmatrix& V, color_t else if(sidepar == SIDE_ASHA) prio = PPR::ASHALLOW; else if(sidepar == SIDE_BSHA) prio = PPR::BSHALLOW; else prio = PPR::REDWALL-2+4*(sidepar-SIDE_SLEV); + + if((col & 255) < 255) prio = PPR::TRANSPARENT_WALL; if(cgi.emb->is_in_noniso()) { draw_shapevec(c, V, qfi.fshape->gpside[sidepar][i], col, prio);