1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 17:40:36 +00:00

placeSidewalls now set PPR::TRANSPARENT_WALL priority for walls with alpha

This commit is contained in:
Zeno Rogue 2023-05-01 16:10:25 +02:00
parent 894252caf2
commit 3692ef68b9

View File

@ -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_ASHA) prio = PPR::ASHALLOW;
else if(sidepar == SIDE_BSHA) prio = PPR::BSHALLOW; else if(sidepar == SIDE_BSHA) prio = PPR::BSHALLOW;
else prio = PPR::REDWALL-2+4*(sidepar-SIDE_SLEV); else prio = PPR::REDWALL-2+4*(sidepar-SIDE_SLEV);
if((col & 255) < 255) prio = PPR::TRANSPARENT_WALL;
if(cgi.emb->is_in_noniso()) { if(cgi.emb->is_in_noniso()) {
draw_shapevec(c, V, qfi.fshape->gpside[sidepar][i], col, prio); draw_shapevec(c, V, qfi.fshape->gpside[sidepar][i], col, prio);