mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed Euclidean reptiles
This commit is contained in:
parent
e4020a78d0
commit
d67ca714fd
@ -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) {
|
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;
|
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 if(si.id >= 28 && si.id < 40) j = 3;
|
||||||
else j = 4;
|
else j = 4;
|
||||||
|
|
||||||
|
if(euclid6) j = 0;
|
||||||
|
|
||||||
transmatrix D = applyPatterndir(c, si);
|
transmatrix D = applyPatterndir(c, si);
|
||||||
transmatrix V2 = V * D;
|
transmatrix V2 = V * D;
|
||||||
|
|
||||||
|
@ -722,6 +722,9 @@ namespace patterns {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(euclid6 && !(sub & SPF_CHANGEROT)) {
|
||||||
|
si.dir = (zebra40(c)*4) % 6;
|
||||||
|
}
|
||||||
if(euclid6 && (sub & SPF_CHANGEROT)) si.dir = 0;
|
if(euclid6 && (sub & SPF_CHANGEROT)) si.dir = 0;
|
||||||
if(sub & SPF_ROT) si.id = 1;
|
if(sub & SPF_ROT) si.id = 1;
|
||||||
if(euclid6 && !(sub & SPF_EXTRASYM)) {
|
if(euclid6 && !(sub & SPF_EXTRASYM)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user