From bb1e9ef91c547334ca763b583e8a16b07b9d2095 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 27 Sep 2019 18:18:50 +0200 Subject: [PATCH] racing in SL2 --- racing.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/racing.cpp b/racing.cpp index c995f9f5..d5bda726 100644 --- a/racing.cpp +++ b/racing.cpp @@ -209,6 +209,7 @@ int pcelldist(cell *c) { #if CAP_CRYSTAL if(cryst) return crystal::precise_distance(c, currentmap->gamestart()); #endif + if(sl2) return PIU(celldist(c)); return celldist(c); } @@ -290,7 +291,7 @@ void find_track(cell *start, int sign, int len) { if(euclid && (penrose || archimedean)) permanent_long_distances(goal); - if(sol || nil) { + if(sol || nil || sl2) { vector p; while(goal != start) p.push_back(goal), goal = parent[goal]; while(!p.empty()) track.push_back(p.back()), p.pop_back();