mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 09:50:34 +00:00
changed the 'quotient==2' tests to 'geometry == gFieldQuotient'
This commit is contained in:
parent
495d87ff91
commit
030377583c
@ -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");
|
||||
|
2
cell.cpp
2
cell.cpp
@ -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) {
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user