mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-03 06:54:08 +00:00
irr torus works only in orientable for now -- disabled for other
This commit is contained in:
parent
f03c5b5c1d
commit
2fb1210811
@ -509,6 +509,7 @@ EX namespace euc {
|
|||||||
|
|
||||||
EX bool valid_irr_torus() {
|
EX bool valid_irr_torus() {
|
||||||
if(!IRREGULAR) return true;
|
if(!IRREGULAR) return true;
|
||||||
|
if(eu.twisted) return false;
|
||||||
for(int i=0; i<2; i++) {
|
for(int i=0; i<2; i++) {
|
||||||
auto x = eu.user_axes[i];
|
auto x = eu.user_axes[i];
|
||||||
coord dm = eutester;
|
coord dm = eutester;
|
||||||
|
@ -751,7 +751,7 @@ EX namespace gp {
|
|||||||
dialog::addBoolItem(XLAT("irregular"), IRREGULAR, 'i');
|
dialog::addBoolItem(XLAT("irregular"), IRREGULAR, 'i');
|
||||||
dialog::add_action(dialog::add_confirmation([=] () {
|
dialog::add_action(dialog::add_confirmation([=] () {
|
||||||
if(min_quality && !irr::bitruncations_requested) irr::bitruncations_requested++;
|
if(min_quality && !irr::bitruncations_requested) irr::bitruncations_requested++;
|
||||||
if(euclid && !bounded) {
|
if(euclid && (!bounded || nonorientable)) {
|
||||||
println(hlog, XLAT("To create Euclidean irregular tesselations, first enable a torus"));
|
println(hlog, XLAT("To create Euclidean irregular tesselations, first enable a torus"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user