1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-05-19 23:54:08 +00:00

rogueviz: missing index

This commit is contained in:
Zeno Rogue 2019-04-22 23:01:27 +02:00
parent fcd9fbbcd2
commit c10939fac6

View File

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