1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-22 21:23:18 +00:00

product:: clipping fixup

This commit is contained in:
Zeno Rogue 2019-08-21 07:32:54 +02:00
parent 87ec57f974
commit 3aefce498c

View File

@ -5084,8 +5084,9 @@ EX void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
}
if(just_gmatrix) return;
#if MAXMDIM >= 4
if(WDIM == 3 && pmodel == mdPerspective && !nonisotropic) {
if(WDIM == 3 && pmodel == mdPerspective && !nonisotropic && !(prod && product::product_sphere())) {
hyperpoint H = tC0(V);
if(prod) H = product::inverse_exp(H);
for(hyperpoint& cpoint: clipping_planes) if((H|cpoint) < -sin_auto(cgi.corner_bonus)) {
drawcell_in_radar(c, V);
return;