From c9fc591e9d4dca3b9a7be877fe8632cf12a875e9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 14 Nov 2020 14:38:57 +0100 Subject: [PATCH] fixed the problem in nonisotropic shmup --- shmup.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/shmup.cpp b/shmup.cpp index 3db3c7f5..dbfddd21 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -173,7 +173,14 @@ void fix_to_2(transmatrix& T) { for(int i=0; i<4; i++) T[i][2] = 0, T[2][i] = 0; T[2][2] = 1; } - fixmatrix(T); + if(nonisotropic) { + hyperpoint h = tC0(T); + transmatrix rot = gpushxto0(h) * T; + { dynamicval g(geometry, gSphere); fixmatrix(rot); } + T = rgpushxto0(h) * rot; + } + else + fixmatrix(T); fixelliptic(T); }