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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user