fixed unstable camera problems (actual_view_transform needs iso_inverse not ortho_inverse)

This commit is contained in:
Zeno Rogue 2020-11-07 15:05:27 +01:00
parent 17c39c3ca2
commit f57229134c
1 changed files with 1 additions and 1 deletions

View File

@ -1687,7 +1687,7 @@ EX void centerpc(ld aspd) {
if(sl || vid.eye) T = T * zpush(cgi.SLEV[sl] - cgi.FLOOR + vid.eye);
}
#endif
hyperpoint H = ortho_inverse(actual_view_transform) * tC0(T);
hyperpoint H = iso_inverse(actual_view_transform) * tC0(T);
ld R = (zero_d(GDIM, H) && !prod) ? 0 : hdist0(H);
if(R < 1e-9) {
// either already centered or direction unknown