fixed Euclidean reptiles

This commit is contained in:
Zeno Rogue 2017-12-27 22:10:50 +01:00
parent e4020a78d0
commit d67ca714fd
2 changed files with 10 additions and 1 deletions

View File

@ -2251,7 +2251,11 @@ void qplainfloor(cell *c, bool warp, const transmatrix &V, int col);
void drawReptileFloor(const transmatrix& V, cell *c, int col, bool usefloor) {
auto si = patterns::getpatterninfo(c, 'z', patterns::SPF_SYM0123);
auto si =
euclid6 ?
patterns::getpatterninfo(c, patterns::PAT_COLORING, 0)
:
patterns::getpatterninfo(c, patterns::PAT_ZEBRA, patterns::SPF_SYM0123);
int j;
@ -2263,6 +2267,8 @@ void drawReptileFloor(const transmatrix& V, cell *c, int col, bool usefloor) {
else if(si.id >= 28 && si.id < 40) j = 3;
else j = 4;
if(euclid6) j = 0;
transmatrix D = applyPatterndir(c, si);
transmatrix V2 = V * D;

View File

@ -722,6 +722,9 @@ namespace patterns {
break;
}
}
if(euclid6 && !(sub & SPF_CHANGEROT)) {
si.dir = (zebra40(c)*4) % 6;
}
if(euclid6 && (sub & SPF_CHANGEROT)) si.dir = 0;
if(sub & SPF_ROT) si.id = 1;
if(euclid6 && !(sub & SPF_EXTRASYM)) {