mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-24 18:04:28 +00:00
svg:: works nicely with smart_range
This commit is contained in:
1 parent
549d86b15d
commit
c8e0371a4c
2 files changed
+2
-1
No files matched your search
@@ -706,6 +706,7 @@ bool in_smart_range(const transmatrix& T) {
|
||||
ld x2 = vid.radius * abs(h3[0] - h1[0]) / epsilon;
|
||||
ld y2 = vid.radius * abs(h3[1] - h1[1]) * vid.stretch / epsilon;
|
||||
ld scale = sqrt(hypot(x1, y1) * hypot(x2, y2)) * scalefactor * hcrossf7;
|
||||
if(svg::in) scale /= svg::divby;
|
||||
return
|
||||
scale > vid.smart_range_detail &&
|
||||
x - 2 * max(x1, x2) < vid.xres &&
|
||||
|
||||
Reference in new issue
Block a user