1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

fixed a bug in rel_log

This commit is contained in:
Zeno Rogue 2023-04-15 01:19:41 +02:00
parent 0c473559f3
commit f57157435e

View File

@ -3316,8 +3316,8 @@ EX hyperpoint rel_log(shiftpoint h, bool relativistic_length) {
ld choice = h1[2] * h1[2] - h1[0] * h1[0] - h1[1] * h1[1];
ld r, z;
if(choice > 0) {
ld r = sqrt(choice);
ld z = asin_clamp(r);
r = sqrt(choice);
z = asin_clamp(r);
if(h1[3] < 0) z = M_PI - z;
z += cycles * TAU;
}