mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-19 15:20:27 +00:00
fixed crash on displaying Rugs in inventory in 3D geometries
This commit is contained in:
parent
c61b556730
commit
d36bd6977b
@ -959,12 +959,15 @@ bool drawItemType(eItem it, cell *c, const transmatrix& V, color_t icol, int pti
|
|||||||
qfi.fshape = &cgi.shMFloor4;
|
qfi.fshape = &cgi.shMFloor4;
|
||||||
draw_shapevec(c, V2 * zpush(-h/20), qfi.fshape->levels[0], 0xFFD500FF, PPR::WALL);
|
draw_shapevec(c, V2 * zpush(-h/20), qfi.fshape->levels[0], 0xFFD500FF, PPR::WALL);
|
||||||
}
|
}
|
||||||
else if(WDIM == 3) {
|
else if(WDIM == 3 && c) {
|
||||||
transmatrix V2 = Vit * spin(ticks / 1500.);
|
transmatrix V2 = Vit * spin(ticks / 1500.);
|
||||||
draw_floorshape(c, V2 * zpush(h/100), cgi.shMFloor3, 0xFFD500FF);
|
draw_floorshape(c, V2 * zpush(h/100), cgi.shMFloor3, 0xFFD500FF);
|
||||||
draw_floorshape(c, V2 * zpush(h/50), cgi.shMFloor4, darkena(icol, 0, 0xFF));
|
draw_floorshape(c, V2 * zpush(h/50), cgi.shMFloor4, darkena(icol, 0, 0xFF));
|
||||||
queuepoly(V2, cgi.shGem[ct6], 0xFFD500FF);
|
queuepoly(V2, cgi.shGem[ct6], 0xFFD500FF);
|
||||||
}
|
}
|
||||||
|
else if(WDIM == 3 && !c) {
|
||||||
|
queuepoly(Vit, cgi.shGem[ct6], 0xFFD500FF);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user