mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-08 16:54:30 +00:00
reg3:: correct alt-maps in rule
This commit is contained in:
1 parent
e806e9a738
commit
0e86f60806
3 files changed
+94
-13
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user