1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-28 19:41:23 +00:00

perspective_to_space now works with large hr too

This commit is contained in:
Zeno Rogue
2025-12-05 11:11:48 +01:00
parent 6a1fa82c58
commit 5f0b41463e

View File

@@ -54,7 +54,7 @@ EX hyperpoint perspective_to_space(hyperpoint h, ld alpha IS(pconf.alpha), eGeom
ld hr = hx*hx+hy*hy;
if(LDIM == 3) hr += h[2]*h[2];
if(hr > .9999 && gc == gcHyperbolic) return Hypc;
if(hr >= 1 && gc == gcHyperbolic) return Hypc;
ld A, B, C;