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

3d:: weird walls now display as rings (passable) or sawrings (impassable)

This commit is contained in:
? 2019-02-27 16:36:56 +01:00 committed by Zeno Rogue
parent 0620916dd2
commit 41be07ae72

View File

@ -3801,9 +3801,9 @@ void draw_gravity_particles(cell *c, const transmatrix V) {
bool isWall3(cell *c, color_t& wcol) { bool isWall3(cell *c, color_t& wcol) {
if(isWorm(c)) { wcol = minf[c->monst].color; return true; } if(isWorm(c)) { wcol = minf[c->monst].color; return true; }
if(isWall(c)) 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(c->wall == waInvisibleFloor) return false;
if(chasmgraph(c)) return true; // if(chasmgraph(c)) return true;
if(among(c->wall, waMirror, waCloud)) return true; if(among(c->wall, waMirror, waCloud)) return true;
return false; return false;
} }
@ -4673,12 +4673,8 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
} }
else if(winf[c->wall].glyph == '.') ; else if(winf[c->wall].glyph == '.') ;
else if(!hiliteclick) { else
int d = (wcol & 0xF0F0F0) >> 4; queuepoly(rgpushxto0(tC0(V)), chasmgraph(c) ? shSawRing : shRing, darkena(wcol, 0, 0xFF));
for(int a=0; a<c->type; a++)
queuepoly(V, shMiniWall3D[a], darkena(wcol - d * get_darkval(a), 0, 0xFF));
}
} }
else switch(c->wall) { else switch(c->wall) {