From f69d538e08460a7171a4ad4059d5017c98e31f3d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 30 Oct 2017 10:52:23 +0100 Subject: [PATCH] fixed the Rock Snake generation in weirdhyperbolic --- landgen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/landgen.cpp b/landgen.cpp index c59bb3df..d25ff93a 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -1390,9 +1390,9 @@ void giantLandSwitch(cell *c, int d, cell *from) { if(d == 7 && c->wall == waNone) buildPrizeMirror(c, 1000); ONEMPTY { - if(hrand((doCross && celldist(c) <= 5) ?450:16000) < 30+items[itRedGem]+yendor::hardness() && !pseudohept(c) && !c->monst && !c->wall) { + if(hrand((doCross && celldist(c) <= 5) ?450:16000) < 30+items[itRedGem]+yendor::hardness() && !pseudohept(c) && !c->monst && !c->wall && !(purehepta && S3==4)) { int i = -1; - for(int t=0; t<6; t++) if(c->mov[t]->mpdist > c->mpdist && !pseudohept(c->mov[t])) + for(int t=0; ttype; t++) if(c->mov[t]->mpdist > c->mpdist && !pseudohept(c->mov[t])) i = t; if(i != -1 && !peace::on) { c->monst = moHexSnake; @@ -1410,7 +1410,7 @@ void giantLandSwitch(cell *c, int d, cell *from) { if(c3->monst || c3->bardir != NODIR || c3->wall) break; c2 = c3; c2->monst = moHexSnakeTail; - i = (j + (len%2 ? 2 : 4)) % 6; + i = (j + (S6==8 ? 4 : (len%2 ? 2 : 4))) % 6; } if(size(rocksnake) < ROCKSNAKELENGTH/2 && !purehepta) { for(int i=0; i