1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-08 05:16:00 +00:00

nilv:: the Nil model is now changeable

This commit is contained in:
Zeno Rogue
2023-01-30 00:02:13 +01:00
parent 80c0b4bb0c
commit 395cbf3668
5 changed files with 110 additions and 37 deletions

View File

@@ -1137,7 +1137,7 @@ EX transmatrix iso_inverse(const transmatrix& T) {
return pseudo_ortho_inverse(T);
if(sphere)
return ortho_inverse(T);
if(nil) {
if(nil && nilv::model_used == 1) {
transmatrix U = Id;
U[2][LDIM] = T[0][LDIM] * T[1][LDIM] - T[2][LDIM];
U[1][LDIM] = -T[1][LDIM];