mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-04 11:37:55 +00:00
gmatrix now uses shiftmatrix_or_null which has an additional field if data is not yet computed -- this seems to fix some bugs in the new compilations of HyperRogue
This commit is contained in:
@@ -201,9 +201,10 @@ 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) {
|
||||
auto& t = gmatrix[c];
|
||||
if(t.is_null) {
|
||||
if(sl2) return t = twist::nmul(shiftless(actual_view_transform * View), twist::relative_shiftmatrix(c, centerover));
|
||||
t.is_null = false;
|
||||
t.T = actual_view_transform * View * calc_relative_matrix(c, centerover, C0);
|
||||
t.shift = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user