fixed the drawing of half-vines and mirror walls in spatial

This commit is contained in:
Zeno Rogue 2023-12-17 17:46:46 +01:00
parent 2fc42cb114
commit cdc1696929
1 changed files with 3 additions and 4 deletions

View File

@ -971,7 +971,7 @@ void celldrawer::draw_halfvine() {
}
else if(wmspatial || GDIM == 3) {
floorshape& shar = *((wmplain || GDIM == 3) ? (floorshape*)&cgi.shFloor : (floorshape*)&cgi.shFeatherFloor);
floorshape& shar = *(GDIM == 3 ? (floorshape*)&cgi.shFullFloor : wmplain ? (floorshape*)&cgi.shFloor : (floorshape*)&cgi.shFeatherFloor);
set_floor(shar);
@ -2232,9 +2232,6 @@ void celldrawer::draw_wall_full() {
else if(patterns::whichShape == '2')
set_floor(cgi.shMFloor3);
else if(embedded_plane && qfi.fshape == &cgi.shFloor)
set_floor(cgi.shFullFloor);
#if CAP_TEXTURE
else if(GDIM == 2 && texture::config.apply(c, Vf, darkena(fcol, fd, 0xFF))) ;
#endif
@ -2271,6 +2268,8 @@ void celldrawer::draw_wall_full() {
else set_land_floor(Vf);
if(embedded_plane && qfi.fshape == &cgi.shFloor) set_floor(cgi.shFullFloor);
// actually draw the floor
if(chasmg == 2) ;