1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-10 02:33:00 +00:00

fixed circle/horocycle/equidistant-based lands in euclid4

This commit is contained in:
Zeno Rogue
2017-12-29 14:20:38 +01:00
parent 5f4dbf9193
commit cafe34ad48
3 changed files with 37 additions and 17 deletions

View File

@@ -3395,7 +3395,7 @@ namespace dungeon {
if(torus) return;
int x, y;
tie(x, y) = cell_to_pair(c);
string tab[] = {
string tab6[] = {
".####...",
"L...L...",
".L..L...",
@@ -3403,13 +3403,21 @@ namespace dungeon {
"........",
"........"
};
string tab4[] = {
"L####L..",
"L....L..",
"L....L..",
"L....L..",
"........",
"........"
};
int y0 = y; if(y>32768) y0 -= 65536;
y0 += 5; y0 %= 12; if(y0<0) y0+=12;
if(y0 >= 6) { y0 -= 6; x += 4; }
char ch = tab[y0][(x+(y+1)/2)&7];
char ch = euclid6 ? tab6[y0][(x+(y+1)/2)&7] : tab4[y0][x&7];
if(ch == '#')
c->wall = waPlatform;