1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-19 15:15:12 +00:00

sl2:: fixes to ggmatrix

This commit is contained in:
Zeno Rogue
2024-07-15 13:30:27 +02:00
parent 35e48f5eb2
commit 72501c20f6
2 changed files with 8 additions and 11 deletions

View File

@@ -203,12 +203,9 @@ transmatrix hrmap_standard::relative_matrixh(heptagon *h2, heptagon *h1, const h
EX shiftmatrix &ggmatrix(cell *c) {
shiftmatrix& t = gmatrix[c];
if(t[LDIM][LDIM] == 0) {
if(sl2) return t = twist::nmul(shiftless(actual_view_transform * View), twist::relative_shiftmatrix(c, centerover));
t.T = actual_view_transform * View * calc_relative_matrix(c, centerover, C0);
t.shift = 0;
if(sl2) {
ld d = twist::get_phase_difference(c, centerover);
t.shift = floor(d / TAU + .5) * TAU;
}
}
return t;
}