mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-20 06:03:01 +00:00
fixed the problem in nonisotropic shmup
This commit is contained in:
parent
1cefbd2ffa
commit
c9fc591e9d
@ -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;
|
for(int i=0; i<4; i++) T[i][2] = 0, T[2][i] = 0;
|
||||||
T[2][2] = 1;
|
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);
|
fixelliptic(T);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user