1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

panini: max_fov_angle() now just returns 360 if panini_alpha is out of range

This commit is contained in:
Zeno Rogue 2020-11-01 21:37:59 +01:00
parent 6513b3a87e
commit 3288eb0c5a

View File

@ -1554,6 +1554,7 @@ EX void explain_detail() {
}
EX ld max_fov_angle() {
if(panini_alpha >= 1 || panini_alpha <= -1) return 360;
return acos(-panini_alpha) * 2 / degree;
}