1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-16 10:19:58 +00:00

Fixed the radar transform computation in 2.5D. The bug also affected fog rendering

This commit is contained in:
Zeno Rogue 2022-12-04 16:30:51 +01:00
parent 9337240d49
commit cfc62c5ee0

View File

@ -5058,7 +5058,7 @@ EX void make_actual_view() {
if(T[0][2])
T = spin(-atan2(T[0][2], T[1][2])) * T;
if(T[1][2] && T[2][2])
if(T[1][2])
T = cspin(1, 2, -atan2(T[1][2], T[2][2])) * T;
ld z = -asin_auto(tC0(view_inverse(T)) [2]);