1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-29 04:47:41 +00:00

product:: works with Euclidean

This commit is contained in:
Zeno Rogue
2019-11-28 23:30:29 +01:00
parent 5add972bdd
commit f3c97f9342
4 changed files with 24 additions and 5 deletions

View File

@@ -279,8 +279,12 @@ void set_or_configure_geometry(eGeometry g) {
#endif
else {
if(among(g, gProduct, gRotSpace)) {
if(WDIM == 3 || euclid) {
addMessage(XLAT("Only works with 2D non-Euclidean geometries"));
if(WDIM == 3 || (g == gRotSpace && euclid)) {
addMessage(XLAT(
g == gRotSpace ?
"Only works with 2D non-Euclidean geometries"
: "Only works with 2D geometries"
));
return;
}
if(g == gRotSpace) {