1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

gp:: better message about illegal parameters for non-orientable geometries

This commit is contained in:
Zeno Rogue 2018-06-22 04:42:39 +02:00
parent 6d15b511c2
commit a48241d639

View File

@ -603,7 +603,10 @@ namespace hr { namespace gp {
dialog::addSelItem("x", its(config.first), 'x');
dialog::addSelItem("y", its(config.second), 'y');
if((config.first-config.second)%3 && !show_nonthree)
if(config.second && config.second != config.first && nonorientable) {
dialog::addInfo(XLAT("This does not work in non-orientable geometries"));
}
else if((config.first-config.second)%3 && !show_nonthree)
dialog::addInfo(XLAT("This pattern needs x-y divisible by 3"));
else if(config == loc(1,1) && !show_bitrunc)
dialog::addInfo(XLAT("Select bitruncated from the previous menu"));