1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 17:27:57 +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:
Zeno Rogue
2024-07-17 11:16:01 +02:00
parent 497790e54b
commit ec96ad2718
6 changed files with 19 additions and 12 deletions

View File

@@ -2040,8 +2040,8 @@ EX int debug_tiles;
void celldrawer::bookkeeping() {
bool orig = false;
if(!inmirrorcount) {
shiftmatrix& gm = gmatrix[c];
orig = (gm[LDIM][LDIM] == 0) || hdist0(tC0(gm)) >= hdist0(tC0(V));
auto& gm = gmatrix[c];
orig = gm.is_null || hdist0(tC0(gm)) >= hdist0(tC0(V));
if(orig) gm = V;
current_display->all_drawn_copies[c].emplace_back(V);
}