mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
fixed irregular tilings on quotient spaces; new CLI parameters for irregular
This commit is contained in:
parent
2c2cda6157
commit
3ed2de8519
@ -123,7 +123,7 @@ bool grailWasFound(cell *c) {
|
|||||||
void generateAlts(heptagon *h, int levs, bool link_cdata) {
|
void generateAlts(heptagon *h, int levs, bool link_cdata) {
|
||||||
if(!h->alt) return;
|
if(!h->alt) return;
|
||||||
preventbarriers(h->c7);
|
preventbarriers(h->c7);
|
||||||
forCellEx(c2, h->c7) preventbarriers(c2);
|
if(h->c7) forCellEx(c2, h->c7) preventbarriers(c2);
|
||||||
if(GOLDBERG)
|
if(GOLDBERG)
|
||||||
for(int i=0; i<S7; i++) preventbarriers(createStep(h, i)->c7);
|
for(int i=0; i<S7; i++) preventbarriers(createStep(h, i)->c7);
|
||||||
for(int i=0; i<S7; i++)
|
for(int i=0; i<S7; i++)
|
||||||
|
@ -1015,6 +1015,14 @@ int readArgs() {
|
|||||||
PHASE(2);
|
PHASE(2);
|
||||||
shift_arg_formula(density);
|
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")) {
|
else if(argis("-irrload")) {
|
||||||
PHASE(3);
|
PHASE(3);
|
||||||
restart_game();
|
restart_game();
|
||||||
|
@ -334,6 +334,7 @@ struct hrmap_quotient : hrmap {
|
|||||||
h->rval0 = h->rval1 = 0; h->cdata = NULL;
|
h->rval0 = h->rval1 = 0; h->cdata = NULL;
|
||||||
h->distance = 0;
|
h->distance = 0;
|
||||||
if(!IRREGULAR) h->c7 = newCell(S7, h);
|
if(!IRREGULAR) h->c7 = newCell(S7, h);
|
||||||
|
else h->c7 = NULL;
|
||||||
}
|
}
|
||||||
for(int j=0; j<S7; j++) {
|
for(int j=0; j<S7; j++) {
|
||||||
int co = connections[i*S7+j];
|
int co = connections[i*S7+j];
|
||||||
|
Loading…
Reference in New Issue
Block a user