mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-21 03:24:05 +00:00
panini: max_fov_angle() now just returns 360 if panini_alpha is out of range
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user