1
0
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:
Zeno Rogue
2020-11-08 12:09:42 +01:00
parent 32a61367b0
commit d7351d169a
3 changed files with 8 additions and 4 deletions

View File

@@ -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;