1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-18 03:58:04 +00:00

fixed lta

This commit is contained in:
Zeno Rogue
2023-01-06 00:24:45 +01:00
parent 4b3bfb9932
commit 1fc48be781
4 changed files with 23 additions and 20 deletions

View File

@@ -5101,13 +5101,13 @@ EX void make_actual_view() {
transmatrix T = actual_view_transform * View;
ld z = -tC0(view_inverse(T)) [2];
transmatrix R = actual_view_transform;
R = cgi.logical_to_actual * R;
R = cgi.logical_to_actual_units * R;
if(R[1][2] || R[2][2])
R = cspin(1, 2, -atan2(R[1][2], R[2][2])) * R;
if(R[0][2] || R[2][2])
R = cspin(0, 2, -atan2(R[0][2], R[2][2])) * R;
if(geom3::hyp_in_solnih()) R = Id;
R = cgi.actual_to_logical * R;
R = cgi.actual_to_logical_units * R;
current_display->radar_transform = inverse(R) * zpush(-z);
}
else if(gproduct) {