1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-26 18:51:21 +00:00

3d:: Euclidean tori

This commit is contained in:
Zeno Rogue
2019-04-15 23:29:07 +02:00
parent 2e1f63e086
commit c0145c0d9c
8 changed files with 282 additions and 19 deletions

View File

@@ -224,8 +224,8 @@ void initcells() {
#if CAP_ARCM
else if(archimedean) currentmap = arcm::new_map();
#endif
else if(fulltorus) currentmap = new hrmap_torus;
else if(euclid && DIM == 3) currentmap = euclid3::new_map();
else if(fulltorus) currentmap = new hrmap_torus;
else if(euclid) currentmap = new hrmap_euclidean;
else if(DIM == 3 && !binarytiling) currentmap = reg3::new_map();
else if(sphere) currentmap = new hrmap_spherical;
@@ -393,7 +393,7 @@ int compdist(int dx[]) {
}
int celldist(cell *c) {
if(fulltorus)
if(fulltorus && DIM == 2)
return torusmap()->dists[decodeId(c->master)];
if(euwrap)
return torusconfig::cyldist(decodeId(c->master), 0);