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

2d3d:: in_smart_range uses vid.smart_range_detail, not vid.smart_range_detail3 which is less applicable

This commit is contained in:
Zeno Rogue 2019-05-11 20:15:09 +02:00
parent 26a10b015a
commit d3f10e8e30

View File

@ -825,7 +825,7 @@ bool in_smart_range(const transmatrix& T) {
if(-h1[2] + 2 * dz < conformal::clip_min || -h1[2] - 2 * dz > conformal::clip_max) return false;
sort(dh, dh+DIM);
ld scale = sqrt(dh[1] * dh[2]) * scalefactor * hcrossf7;
if(scale <= vid.smart_range_detail_3) return false;
if(scale <= (WDIM == 2 ? vid.smart_range_detail : vid.smart_range_detail_3)) return false;
}
else {
ld scale = sqrt(dh[0] * dh[1]) * scalefactor * hcrossf7;