1
0
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:
Zeno Rogue
2024-07-15 09:01:15 +02:00
parent 0f8e95d481
commit cdcd2aee21
2 changed files with 29 additions and 1 deletions

View File

@@ -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;
}