mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-22 23:17:04 +00:00
fixed the meaning of patterninfo::symmetries
This commit is contained in:
parent
d2c2140cc9
commit
c8ce9c9826
@ -586,7 +586,7 @@ EX namespace patterns {
|
||||
int id;
|
||||
int dir;
|
||||
bool reflect;
|
||||
/** 1 if no symmetries, more otherwise */
|
||||
/** 1 if all symmetries, c->type if no symmetries */
|
||||
int symmetries;
|
||||
};
|
||||
#endif
|
||||
@ -836,7 +836,7 @@ EX namespace patterns {
|
||||
}
|
||||
|
||||
void val_all(cell *c, patterninfo &si, int sub, int pat) {
|
||||
if(IRREGULAR || arcm::in() || bt::in() || arb::in() || WDIM == 3) si.symmetries = 1;
|
||||
if(IRREGULAR || arcm::in() || bt::in() || arb::in() || WDIM == 3) si.symmetries = c->type;
|
||||
else if(a46) val46(c, si, sub, pat);
|
||||
else if(a38) val38(c, si, sub, pat);
|
||||
else if(S7 < 6 && S3 == 3) valSibling(c, si, sub, pat);
|
||||
@ -1032,7 +1032,7 @@ EX namespace patterns {
|
||||
if(arb::in()) {
|
||||
si.id = arb::id_of(c->master);
|
||||
si.dir = 0;
|
||||
si.symmetries = arb::current.shapes[si.id].repeat_value;
|
||||
si.symmetries = c->type / arb::current.shapes[si.id].repeat_value;
|
||||
si.reflect = false;
|
||||
return si;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user