From cf4912a895e69dead2462618ce672545b4d679a1 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 18 Jun 2024 11:40:50 +0200 Subject: [PATCH] twist:: do not display disc_quotient warning in sphere --- nonisotropic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonisotropic.cpp b/nonisotropic.cpp index 66c7363f..6dda8892 100644 --- a/nonisotropic.cpp +++ b/nonisotropic.cpp @@ -1367,7 +1367,7 @@ EX namespace hybrid { if(disc_quotient == 0) disc_quotient = val; disc_quotient = gcd(val, disc_quotient); if(disc_quotient < 0) disc_quotient = -disc_quotient; - if(old_disc_quotient != disc_quotient && !in_underlying([] { return quotient; })) + if(old_disc_quotient != disc_quotient && !in_underlying([] { return quotient || sphere; })) addMessage(XLAT("ERROR: failed to solve the twist values, the map will be incorrect", its(disc_quotient))); }