1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-16 02:09:59 +00:00

fixed the problem in nonisotropic shmup

This commit is contained in:
Zeno Rogue 2020-11-14 14:38:57 +01:00
parent 1cefbd2ffa
commit c9fc591e9d

View File

@ -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<eGeometry> g(geometry, gSphere); fixmatrix(rot); }
T = rgpushxto0(h) * rot;
}
else
fixmatrix(T);
fixelliptic(T);
}