fixed irregular tilings on quotient spaces; new CLI parameters for irregular

This commit is contained in:
? 2019-02-28 22:23:47 +01:00 committed by Zeno Rogue
parent 2c2cda6157
commit 3ed2de8519
3 changed files with 10 additions and 1 deletions

View File

@ -123,7 +123,7 @@ bool grailWasFound(cell *c) {
void generateAlts(heptagon *h, int levs, bool link_cdata) {
if(!h->alt) return;
preventbarriers(h->c7);
forCellEx(c2, h->c7) preventbarriers(c2);
if(h->c7) forCellEx(c2, h->c7) preventbarriers(c2);
if(GOLDBERG)
for(int i=0; i<S7; i++) preventbarriers(createStep(h, i)->c7);
for(int i=0; i<S7; i++)

View File

@ -1015,6 +1015,14 @@ int readArgs() {
PHASE(2);
shift_arg_formula(density);
}
else if(argis("-irrb")) {
PHASE(2);
shift(); bitruncations_requested = argi();
}
else if(argis("-irrq")) {
PHASE(2);
shift_arg_formula(quality);
}
else if(argis("-irrload")) {
PHASE(3);
restart_game();

View File

@ -334,6 +334,7 @@ struct hrmap_quotient : hrmap {
h->rval0 = h->rval1 = 0; h->cdata = NULL;
h->distance = 0;
if(!IRREGULAR) h->c7 = newCell(S7, h);
else h->c7 = NULL;
}
for(int j=0; j<S7; j++) {
int co = connections[i*S7+j];