From 69387d40ef32f17637d065fa8e2b6d4a2f7522ce Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 7 Aug 2019 20:46:06 +0200 Subject: [PATCH] fixed Ruined City discrepancy (affected Racing) --- landgen.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/landgen.cpp b/landgen.cpp index b1d32ffd..09f5c9a8 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -2194,15 +2194,15 @@ void giantLandSwitch(cell *c, int d, cell *from) { } else { c->landparam = 2; - if(out_ruin(c)) + if(out_ruin(c)) { c->landparam = 0; - else forCellEx(c2, c) if(out_ruin(c2)) - c->landparam = 1; - - if(c->landparam == 0 && hrand(100) < 3) - c->wall = waRuinWall, c->landparam = 1; - if(c->landparam == 1 && hrand(100) < 75) - c->wall = waRuinWall; + if(hrand(100) < 3) + c->wall = waRuinWall; + } + else if(hrand(100) < 75) { + forCellEx(c2, c) if(out_ruin(c2)) + c->wall = waRuinWall, c->landparam = 1; + } } if(hrand_monster(40000) < kf && !c->monst && !c->wall && !shmup::on) { cell *c1 = c; @@ -2214,6 +2214,7 @@ void giantLandSwitch(cell *c, int d, cell *from) { c2->mondir = neighborId(c2, c1); } } + if(d == 7 && c->landparam == 2) forCellEx(c2, c) if(out_ruin(c2)) c->landparam = 1; ONEMPTY { if(hrand(1500) < PT(30 + kills[moHexDemon] + kills[moSkeleton] + kills[moMonk] + kills[moPair], 100) && notDippingFor(itRuins)) { c->item = itRuins;