mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
clamp hdist just in case
This commit is contained in:
parent
47f0cc968f
commit
1346583a7c
@ -511,7 +511,7 @@ double hdist(const hyperpoint& h1, const hyperpoint& h2) {
|
||||
case gcHyperbolic:
|
||||
return 2 * asinh(sqrt(iv) / 2);
|
||||
case gcSphere:
|
||||
return 2 * asin(sqrt(iv) / 2);
|
||||
return 2 * asin_auto_clamp(sqrt(iv) / 2);
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user