changed the 'quotient==2' tests to 'geometry == gFieldQuotient'

This commit is contained in:
Zeno Rogue 2018-06-25 23:14:46 +02:00
parent 495d87ff91
commit 030377583c
5 changed files with 7 additions and 6 deletions

View File

@ -121,7 +121,7 @@ void generateAlts(heptagon *h, int levs, bool link_cdata) {
break;
}
}
if(relspin == -4 && quotient != 2) {
if(relspin == -4 && geometry != gFieldQuotient) {
if(h->alt != h->alt->alt) {
printf("relspin {%p:%p}\n", h->alt, h->alt->alt);
{for(int i=0; i<S7; i++) printf("%p ", h->alt->move[i]);} printf(" ALT\n");

View File

@ -1469,7 +1469,7 @@ int celldistance(cell *c1, cell *c2) {
return torusmap()->dists[torusconfig::vec_to_id(decodeId(c1->master)-decodeId(c2->master))];
}
if(quotient == 2 && !gp::on)
if(geometry == gFieldQuotient && !gp::on)
return currfp.getdist(fieldpattern::fieldval(c1), fieldpattern::fieldval(c2));
if(sphere || quotient || torus) {

View File

@ -2706,7 +2706,7 @@ namespace prairie {
c->LHU.fi.rval = max(celldist(c), 15);
}
else {
if(quotient == 2 || !from) {
if(geometry == gFieldQuotient || !from) {
c->fval = currfp.distflower0;
}
else if(from && from->land == laPrairie && from->fval)

View File

@ -703,7 +703,7 @@ fpattern current_quotient_field(0), fp_invalid(0);
bool quotient_field_changed;
fpattern& getcurrfp() {
if(quotient == 2 && quotient_field_changed)
if(geometry == gFieldQuotient && quotient_field_changed)
return current_quotient_field;
if(S7 == 8 && S3 == 3) {
static fpattern fp(17);

View File

@ -376,7 +376,7 @@ void showEuclideanMenu() {
dialog::addBoolItem(XLAT("stereographic/orthogonal"), vid.alpha>10, '1');
else
dialog::addBoolItem(XLAT("Poincaré/Klein"), vid.alpha>.5, '1');
if(torus || quotient == 2)
if(torus || geometry == gFieldQuotient)
dialog::addItem(XLAT("advanced parameters"), '4');
dialog::addHelp();
dialog::addBack();
@ -423,7 +423,8 @@ void showEuclideanMenu() {
torusconfig::newmode = torusconfig::torus_mode,
torus_bitrunc = nonbitrunc,
pushScreen(showTorusConfig);
if(quotient==2) pushScreen(showQuotientConfig);
if(geometry == gFieldQuotient)
pushScreen(showQuotientConfig);
}
else if(doexiton(sym, uni))
popScreen();