Skip to content

Commit

Permalink
ls:: fixed Camelot in horodisk_structure
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorogue committed Sep 14, 2023
1 parent 1d4dac0 commit dd5e9db
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions bigstuff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,7 @@ EX void start_camelot(cell *c) {
heptagon *alt = create_altmap(c, ls::single() ? 2 : rtr+(hyperbolic && WDIM == 3 ? 11 : 14), ls::single() ? hsA : hsOrigin);
if(alt) {
altmap::radius(alt) = rtr;
altmap::orig_land(alt) = c->land;
altmap::orig_land(alt) = ls::horodisk_structure() ? laCrossroads : c->land;
hv_land[alt] = laCamelot;
}
}
Expand All @@ -1830,7 +1830,7 @@ EX void build_horocycles(cell *c, cell *from) {

// buildbigstuff

if(ls::any_order() && bearsCamelot(c->land) && can_start_horo(c) && !bt::in() && !ls::voronoi_structure() &&
if(ls::any_order() && (ls::horodisk_structure() || bearsCamelot(c->land)) && can_start_horo(c) && !bt::in() && !ls::voronoi_structure() &&
#if MAXMDIM >= 4
!(hyperbolic && WDIM == 3 && !reg3::in_hrmap_rule_or_subrule()) &&
#endif
Expand Down Expand Up @@ -2024,6 +2024,9 @@ EX void buildCamelot(cell *c) {
if(c->land == laNone) printf("Camelot\n"); // NONEDEBUG
}
}
else {
setland(c, eLand(altmap::orig_land(c->master->alt->alt)));
}
#endif
}

Expand Down Expand Up @@ -2120,6 +2123,7 @@ EX void gen_temple(cell *c) {
EX void moreBigStuff(cell *c) {
if(disable_bigstuff) return;

if(!ls::hv_structure())
if((bearsCamelot(c->land) && !euclid && !quotient && !nil) || c->land == laCamelot)
if(have_alt(c)) if(!(bt::in() && specialland != laCamelot))
buildCamelot(c);
Expand Down Expand Up @@ -2152,7 +2156,10 @@ EX void moreBigStuff(cell *c) {
gen_alt(c);
preventbarriers(c);
}
if(have_alt(c) && celldistAlt(c) <= 0) {
if(have_alt(c) && hv_land[c->master->alt->alt] == laCamelot) {
buildCamelot(c);
}
else if(have_alt(c) && celldistAlt(c) <= 0) {
eLand l = hv_land[c->master->alt->alt];
setland(c, l);
if(l == laWhirlpool && celldistAlt(c) >= -1) {
Expand Down

0 comments on commit dd5e9db

Please sign in to comment.