removed incorrect optimization in 3D graphics

This commit is contained in:
Zeno Rogue 2020-09-11 11:29:14 +02:00
parent 6a5a06c622
commit 37495105a5
1 changed files with 2 additions and 1 deletions

View File

@ -1634,7 +1634,8 @@ void celldrawer::draw_features_and_walls_3d() {
if(pmodel == mdPerspective && !sphere && !quotient && !kite::in() && !nonisotropic && !hybri && !experimental && !nih) {
if(a < 4 && among(geometry, gHoroTris, gBinary3) && celldistAlt(c) >= celldistAlt(centerover)) continue;
else if(a < 2 && among(geometry, gHoroRec) && celldistAlt(c) >= celldistAlt(centerover)) continue;
else if(c->move(a)->master->distance > c->master->distance && c->master->distance > centerover->master->distance && !quotient) continue;
// this optimization is not correct, need to fix
// else if(c->move(a)->master->distance > c->master->distance && c->master->distance > centerover->master->distance && !quotient) continue;
}
else if(sol && in_perspective() && !nih && !asonov::in()) {
ld b = vid.binary_width * log(2) / 2;