1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-10 02:33:00 +00:00

fixed a bug with cleaning quotient spaces

This commit is contained in:
Zeno Rogue
2018-02-08 22:27:48 +01:00
parent 2a59ff7ab2
commit b693c3ca58
3 changed files with 18 additions and 13 deletions

View File

@@ -100,7 +100,7 @@ bool grailWasFound(cell *c) {
return c->master->alt->alt->emeraldval & GRAIL_FOUND;
}
void generateAlts(heptagon *h, int levs) {
void generateAlts(heptagon *h, int levs, bool link_cdata) {
if(!h->alt) return;
preventbarriers(h->c7);
for(int i=0; i<S7; i++) preventbarriers(h->c7->mov[i]);
@@ -142,8 +142,8 @@ void generateAlts(heptagon *h, int levs) {
continue;
}
ho->alt = hm;
hm->cdata = (cdata*) ho;
if(levs) generateAlts(ho, levs-1);
if(link_cdata) hm->cdata = (cdata*) ho;
if(levs) generateAlts(ho, levs-1, link_cdata);
}
}