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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user