fixed Closed Gates in 3D, also improved the pseudo-3D style in 2D

This commit is contained in:
Zeno Rogue committed 2026-07-31 13:20:47 +02:00
1 parent 4781fc451d
commit c2cefcf550
2 files changed
+15 -2

No files matched your search

+14 -1
View File
@@ -779,9 +779,22 @@ void celldrawer::draw_wall() {
int hdir = 0;
for(int i=0; i<c->type; i++) if(c->move(i) && c->move(i)->wall == waClosedGate)
hdir = i;
shiftmatrix V2 = orthogonal_move_fol(V, wmspatial?cgi.WALL:1) * ddspin180(c, hdir); // to test
shiftmatrix V1 = V * ddspin180(c, hdir);
if(wmspatial) {
queuepolyat(V1, cgi.shPalaceGate, darkena(wcol, 0, 0xFF), wmspatial?PPR::WALL_DECO:PPR::WALL);
const int layers = 2 << detaillevel;
for(int z=1; z<layers; z++) {
double zg = zgrad0(0, geom3::actual_wall_height(), z, layers);
queuepolyat(xyzscale(V1, zg, zg), cgi.shPalaceGate, darkena(wcol, 0, 0xFF), wmspatial?PPR::WALL_DECO:PPR::WALL);
}
}
shiftmatrix V2 = orthogonal_move_fol(V1, wmspatial?cgi.WALL:1);
queuepolyat(V2, cgi.shPalaceGate, darkena(wcol, 0, 0xFF), wmspatial?PPR::WALL_DECO:PPR::WALL);
starcol = 0;
return;
}
hpcshape& shThisWall = isGrave(c->wall) ? cgi.shCross : cgi.shWall[ct6];
+1 -1
View File
@@ -364,7 +364,7 @@ EX spatial_info get_spatial_info(cell *c) {
return spatial_info{SIDE::RED2, SIDE::RED2, F(RED1) | F(RED2) | F(FLOOR) | F(WATERLEVEL) | F(SHALLOW) | F(DEEP), 2};
if(slev == 3)
return spatial_info{SIDE::RED3, SIDE::RED3, F(RED1) | F(RED2) | F(RED3) | F(FLOOR) | F(WATERLEVEL) | F(SHALLOW) | F(DEEP), 3};
if(highwall(c) && !conegraph(c) && c->wall != waRose)
if(highwall(c) && !conegraph(c) && c->wall != waRose && c->wall != waClosedGate)
return spatial_info{SIDE::WALL, SIDE::WALL, F(WALL) | F(FLOOR) | F(WATERLEVEL) | F(SHALLOW) | F(DEEP), 0};
return spatial_info{SIDE::FLOOR, SIDE::FLOOR, F(FLOOR) | F(WATERLEVEL) | F(SHALLOW) | F(DEEP), 0};
#undef F