From 3ed43b8c7d8712beeae150f5f2a31f6e7cd7cc6d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 22 Feb 2024 20:30:35 +0100 Subject: [PATCH] fixed a freeze when computing distance in INVERSE --- cell.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cell.cpp b/cell.cpp index 34d02f86..96b8a001 100644 --- a/cell.cpp +++ b/cell.cpp @@ -1469,14 +1469,15 @@ EX int celldistance(cell *c1, cell *c2) { if(hyperbolic && WDIM == 3) return reg3::celldistance(c1, c2); #endif - if(INVERSE) { + /* if(INVERSE) { c1 = gp::get_mapped(c1); c2 = gp::get_mapped(c2); return UIU(celldistance(c1, c2)) / 2; - /* TODO */ - } + // that does not seem to work + } */ if(euclid) return clueless_celldistance(c1, c2); + if(INVERSE) return clueless_celldistance(c1, c2); return hyperbolic_celldistance(c1, c2); }