mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed Euclidean Torus Land of Storm
This commit is contained in:
parent
1e290ba48a
commit
2acf7b572c
11
landgen.cpp
11
landgen.cpp
@ -1282,13 +1282,16 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case laStorms: {
|
case laStorms: {
|
||||||
bool randstorm = PIU(hyperbolic_not37 || NONSTDVAR || (quotient && geometry != gZebraQuotient));
|
bool randstorm = PIU(hyperbolic_not37 || NONSTDVAR || (quotient && geometry != gZebraQuotient && !(euclid && !archimedean && !penrose && WDIM == 2)));
|
||||||
if(fargen) {
|
if(fargen) {
|
||||||
|
|
||||||
if(euclid && bounded) {
|
if(euclid && smallbounded && WDIM == 2) {
|
||||||
/* todo */
|
auto s = sdxy();
|
||||||
|
gp::loc st {s.first/3, s.second/3};
|
||||||
|
if(c == at_euc2_coordinates(st)) c->wall = waCharged;
|
||||||
|
if(c == at_euc2_coordinates(s-st)) c->wall = waGrounded;
|
||||||
}
|
}
|
||||||
else if(euclid) {
|
else if(euclid && WDIM == 2) {
|
||||||
int x,y;
|
int x,y;
|
||||||
tie(x,y) = euc2_coordinates(c);
|
tie(x,y) = euc2_coordinates(c);
|
||||||
if((x+1)%3 == 0 && y%3 == 0) {
|
if((x+1)%3 == 0 && y%3 == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user