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:
12
complex.cpp
12
complex.cpp
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user