mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-10 02:14:06 +00:00
fixed the availability for gTwistedProduct
This commit is contained in:
parent
df0061b9f1
commit
50fba587c4
12
geom-exp.cpp
12
geom-exp.cpp
@ -316,15 +316,15 @@ void set_or_configure_geometry(eGeometry g) {
|
|||||||
else {
|
else {
|
||||||
bool quo = false;
|
bool quo = false;
|
||||||
if(among(g, gProduct, gTwistedProduct)) {
|
if(among(g, gProduct, gTwistedProduct)) {
|
||||||
if(WDIM == 3 || (g == gTwistedProduct && euclid)) {
|
if(WDIM == 3) {
|
||||||
addMessage(
|
addMessage(XLAT("Only works with 2D geometries"));
|
||||||
g == gTwistedProduct ?
|
|
||||||
XLAT("Only works with 2D non-Euclidean geometries")
|
|
||||||
: XLAT("Only works with 2D geometries")
|
|
||||||
);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(g == gTwistedProduct) {
|
if(g == gTwistedProduct) {
|
||||||
|
if(nonorientable) {
|
||||||
|
addMessage(XLAT("Only works in orientable spaces"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
quo = sphere || quotient;
|
quo = sphere || quotient;
|
||||||
if(arcm::in()) ok = PURE;
|
if(arcm::in()) ok = PURE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user