mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-23 01:47:39 +00:00
ggmatrix and relativematrixc working in low-range sl2
This commit is contained in:
@@ -205,6 +205,10 @@ EX shiftmatrix &ggmatrix(cell *c) {
|
||||
if(t[LDIM][LDIM] == 0) {
|
||||
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