mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 09:50:34 +00:00
fixed threecolor pattern claiming to work when it does not, or producing weird effects
This commit is contained in:
parent
9b55240d1e
commit
eda65399d6
@ -977,12 +977,14 @@ namespace patterns {
|
||||
}
|
||||
|
||||
int geosupport_threecolor() {
|
||||
if(!nonbitrunc) {
|
||||
if(!nonbitrunc && S3 == 3) {
|
||||
if(S7 % 2) return 1;
|
||||
return 2;
|
||||
}
|
||||
if((S7 % 2 == 0) && (S3 == 3))
|
||||
return 2;
|
||||
if(a46 && nonbitrunc)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1068,7 +1070,7 @@ int pattern_threecolor(cell *c) {
|
||||
patterns::val46(c, si, 0, patterns::PAT_COLORING);
|
||||
return si.id;
|
||||
}
|
||||
if(S7 == 5 && nonbitrunc) {
|
||||
if(S7 == 5 && nonbitrunc && S3 == 3) {
|
||||
const int codes[12] = {1, 2, 0, 3, 2, 0, 0, 1, 3, 1, 2, 3};
|
||||
return codes[c->master->fiftyval];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user