1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-09 15:39:55 +00:00

twist:: do not display disc_quotient warning in sphere

This commit is contained in:
Zeno Rogue 2024-06-18 11:40:50 +02:00
parent 1b51295008
commit cf4912a895

View File

@ -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)));
}