mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-09 09:14:30 +00:00
added some missing CAP_SOLV guards
This commit is contained in:
1 parent
90baab83eb
commit
8833251c8b
4 files changed
+16
No files matched your search
@@ -913,7 +913,9 @@ EX int heptdistance(heptagon *h1, heptagon *h2) {
|
||||
#if CAP_CRYSTAL
|
||||
if(cryst) return crystal::space_distance(h1->c7, h2->c7);
|
||||
#endif
|
||||
#if CAP_SOLV
|
||||
if(sol) return solv::approx_distance(h1, h2);
|
||||
#endif
|
||||
while(true) {
|
||||
if(h1 == h2) return d;
|
||||
for(int i=0; i<S7; i++) if(h1->move(i) == h2) return d + 1;
|
||||
|
||||
Reference in new issue
Block a user