1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-17 02:29:44 +00:00

3d:: 2D/3D is now selectable at runtime

This commit is contained in:
?
2019-02-24 19:40:01 +01:00
committed by Zeno Rogue
parent 1f8510bc71
commit d08e58f404
17 changed files with 208 additions and 232 deletions

View File

@@ -1868,9 +1868,9 @@ int celldistance(cell *c1, cell *c2) {
return 64;
}
#if DIM == 3
if(binarytiling) return binary::celldistance(c1, c2);
#endif
if(binarytiling && DIM == 3)
return binary::celldistance3(c1, c2);
return hyperbolic_celldistance(c1, c2);
}