From 41be07ae72c9c4c0927b610c2309fc8cc3c0d301 Mon Sep 17 00:00:00 2001 From: ? Date: Wed, 27 Feb 2019 16:36:56 +0100 Subject: [PATCH] 3d:: weird walls now display as rings (passable) or sawrings (impassable) --- graph.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/graph.cpp b/graph.cpp index 150b8192..0d6aa60a 100644 --- a/graph.cpp +++ b/graph.cpp @@ -3801,9 +3801,9 @@ void draw_gravity_particles(cell *c, const transmatrix V) { bool isWall3(cell *c, color_t& wcol) { if(isWorm(c)) { wcol = minf[c->monst].color; return true; } if(isWall(c)) return true; - if(c->wall == waChasm) { wcol = 0x606000; return true; } + // if(c->wall == waChasm) { wcol = 0x606000; return true; } if(c->wall == waInvisibleFloor) return false; - if(chasmgraph(c)) return true; + // if(chasmgraph(c)) return true; if(among(c->wall, waMirror, waCloud)) return true; return false; } @@ -4673,12 +4673,8 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) { } else if(winf[c->wall].glyph == '.') ; - else if(!hiliteclick) { - int d = (wcol & 0xF0F0F0) >> 4; - - for(int a=0; atype; a++) - queuepoly(V, shMiniWall3D[a], darkena(wcol - d * get_darkval(a), 0, 0xFF)); - } + else + queuepoly(rgpushxto0(tC0(V)), chasmgraph(c) ? shSawRing : shRing, darkena(wcol, 0, 0xFF)); } else switch(c->wall) {