1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-23 22:16:03 +00:00

reg3:: correct alt-maps in rule

This commit is contained in:
Zeno Rogue
2020-01-28 10:35:41 +01:00
parent e806e9a738
commit 0e86f60806
3 changed files with 94 additions and 13 deletions

View File

@@ -148,7 +148,7 @@ EX hrmap *currentmap;
EX vector<hrmap*> allmaps;
EX hrmap *newAltMap(heptagon *o) {
if(reg3::geometry_has_tree_structure())
if(reg3::in_rule())
return reg3::new_alt_map(o);
return new hrmap_hyperbolic(o);
}
@@ -495,7 +495,8 @@ EX int celldistAlt(cell *c) {
}
#if MAXMDIM >= 4
if(euc::in(3)) return euc::dist_alt(c);
if(hyperbolic && WDIM == 3) return reg3::altdist(c->master);
if(hyperbolic && WDIM == 3 && !reg3::in_rule())
return reg3::altdist(c->master);
#endif
if(!c->master->alt) return 0;
#if CAP_IRR