PIU now works in the underlying map -- underlying geometry only is too fragile

This commit is contained in:
Zeno Rogue committed 2019-11-30 18:06:47 +01:00
1 parent 30329df05c
commit d63b14da5c
8 files changed
+19 -31

No files matched your search

+2 -4
View File
@@ -132,7 +132,7 @@ EX bool grailWasFound(cell *c) {
}
void hrmap::generateAlts(heptagon *h, int levs, bool link_cdata) {
if(hybri) { hybrid::in_underlying_map([&] { generateAlts(h, levs, link_cdata); }); }
if(hybri) { PIU ( generateAlts(h, levs, link_cdata) ); }
if(!h->alt) return;
preventbarriers(h->c7);
if(h->c7) forCellEx(c2, h->c7) preventbarriers(c2);
@@ -187,9 +187,7 @@ EX heptagon *createAlternateMap(cell *c, int rad, hstate firststate, int special
if(hybri) {
if(hybrid::over_sphere()) return NULL;
c = hybrid::get_where(c).first;
heptagon *res;
hybrid::in_underlying_map([&] { res = createAlternateMap(c, rad, firststate, special); });
return res;
return PIU ( createAlternateMap(c, rad, firststate, special) );
}
// check for direction