1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-14 12:47:10 +00:00

improvements to sphere flipping

This commit is contained in:
Zeno Rogue
2022-12-04 14:48:12 +01:00
parent 0770a11164
commit 42f96b768c
5 changed files with 12 additions and 9 deletions

View File

@@ -927,7 +927,7 @@ EX int rhypot(int a, int b) { return (int) sqrt(a*a - b*b); }
EX ld realradius() {
ld vradius = current_display->radius;
if(sphere) {
if(sphereflipped())
if(flip_sphere())
vradius /= sqrt(pconf.alpha*pconf.alpha - 1);
else
vradius = 1e12; // use the following