1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 15:00:26 +00:00

fixed clipping: do not do it in 2D!

This commit is contained in:
Zeno Rogue 2019-07-31 17:33:11 +02:00
parent dc54135d5f
commit 2f0448dbc3

View File

@ -5047,7 +5047,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
} }
if(just_gmatrix) return; if(just_gmatrix) return;
#if MAXMDIM >= 4 #if MAXMDIM >= 4
if(pmodel == mdPerspective) { if(WDIM == 3 && pmodel == mdPerspective) {
using namespace hyperpoint_vec; using namespace hyperpoint_vec;
hyperpoint H = tC0(V); hyperpoint H = tC0(V);
for(hyperpoint& cpoint: clipping_planes) if((H|cpoint) < -sin_auto(cgi.corner_bonus)) { for(hyperpoint& cpoint: clipping_planes) if((H|cpoint) < -sin_auto(cgi.corner_bonus)) {