1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-04 19:47:54 +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

@@ -10,18 +10,18 @@ namespace rogueviz {
namespace fullnet {
void drawExtra() {
for(map<cell*, shiftmatrix>::iterator it = gmatrix.begin(); it != gmatrix.end(); it++) {
cell *c = it->first;
for(auto& p: gmatrix) {
cell *c = p.first;
c->wall = waChasm;
}
int index = 0;
for(map<cell*, shiftmatrix>::iterator it = gmatrix.begin(); it != gmatrix.end(); it++) {
cell *c = it->first;
for(auto& p: gmatrix) {
cell *c = p.first;
bool draw = true;
for(int i=0; i<isize(named); i++) if(named[i] == c) draw = false;
if(draw && gmatrix.count(c))
queuedisk(it->second, dftcolor, false, NULL, index++);
queuedisk(p.second, dftcolor, false, NULL, index++);
// queuepolyat(it->second, shDisk, dftcolor., PPR::LINE);
}