mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-26 11:27:39 +00:00
fixed some pconf/vpconf bugs
This commit is contained in:
@@ -305,7 +305,7 @@ transmatrix zforward_push(ld z) {
|
||||
}
|
||||
|
||||
EX void zoom_or_fov(ld t) {
|
||||
if(in_perspective()) {
|
||||
if(in_perspective_v()) {
|
||||
auto tanfov = tan(vid.fov * degree / 2);
|
||||
tanfov *= t;
|
||||
vid.fov = atan(tanfov) * 2 / degree;
|
||||
|
||||
Reference in New Issue
Block a user