From 9ded3f8c7cc0c7e743b2b5264315b94218802d41 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 2 Mar 2020 17:53:13 +0100 Subject: [PATCH] changes:: fixed Galapagos --- complex.cpp | 2 +- items.cpp | 2 ++ landgen.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/complex.cpp b/complex.cpp index 87624d9b..255322ef 100644 --- a/complex.cpp +++ b/complex.cpp @@ -2510,7 +2510,7 @@ EX namespace tortoise { EX int getb(cell *where) { if(emap.count(where)) return emap[where]; - return getBits(where); + return getBits(where) & ((1<item == itBabyTortoise) { using namespace tortoise; int bnew = babymap[c2]; + changes.map_value(babymap, c2); babymap.erase(c2); int bold = seekbits; seekbits = bnew; changes.value_set(tortoise::last, seekbits); if(seek()) { cell *c = passable(cwt.at, NULL, 0) ? cwt.at : c2; + changes.ccell(c); c->item = itBabyTortoise; if(c == c2) dopickup = false; changes.map_value(babymap, c); diff --git a/landgen.cpp b/landgen.cpp index ad353d27..7ce2fe78 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -1035,7 +1035,7 @@ EX void giantLandSwitch(cell *c, int d, cell *from) { } if(!c->monst && !tactic::on && !racing::on && !yendor::on && !randomPatternsMode && !peace::on && !euclid && hrand(4000) < 10 && !safety) { c->item = itBabyTortoise; - tortoise::babymap[c] = getBits(c) ^ tortoise::getRandomBits(); + tortoise::babymap[c] = tortoise::getb(c) ^ tortoise::getRandomBits(); } } break;