1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-30 01:12:12 +00:00

SLR works with Archimedean

This commit is contained in:
Zeno Rogue
2019-08-26 15:39:37 +02:00
parent 7bd80dab18
commit afa3cd599d
3 changed files with 15 additions and 6 deletions
+2 -1
View File
@@ -1103,7 +1103,8 @@ EX namespace slr {
transmatrix relative_matrix(cell *c1, int i) {
if(i == c1->type-2) return zpush(-cgi.plevel) * spin(-2*cgi.plevel);
if(i == c1->type-1) return zpush(+cgi.plevel) * spin(+2*cgi.plevel);
if(PURE && !archimedean) {
if(PURE && hybrid::underlying != gArchimedean) {
/* todo: always do something like this! */
int j = c1->c.spin(i);
ld A = master_to_c7_angle();
transmatrix Q = spin(-A + 2 * M_PI * i / S7) * xpush(cgi.tessf) * spin(M_PI - 2 * M_PI * j / S7 + A);