1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed Euclidean Torus Land of Storm

This commit is contained in:
Zeno Rogue 2019-11-28 00:16:14 +01:00
parent 1e290ba48a
commit 2acf7b572c

View File

@ -1282,13 +1282,16 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
break;
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(euclid && bounded) {
/* todo */
if(euclid && smallbounded && WDIM == 2) {
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;
tie(x,y) = euc2_coordinates(c);
if((x+1)%3 == 0 && y%3 == 0) {