1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-28 04:17:39 +00:00

fixed spherity

This commit is contained in:
Zeno Rogue
2019-09-28 16:53:35 +02:00
parent 566a323eb4
commit 77cf19fadc

View File

@@ -887,7 +887,7 @@ EX ld spherity(const hyperpoint& h) {
if(!sphere) return 1; if(!sphere) return 1;
if(vid.alpha > 1) { if(vid.alpha > 1) {
return to01(1/vid.alpha, 1, -h[2]); return to01(1/vid.alpha, 1, abs(h[2]));
} }
if(vid.alpha <= 1) { if(vid.alpha <= 1) {