changes:: fixed Galapagos
This commit is contained in:
parent
a33c4b8e50
commit
9ded3f8c7c
|
@ -2510,7 +2510,7 @@ EX namespace tortoise {
|
||||||
|
|
||||||
EX int getb(cell *where) {
|
EX int getb(cell *where) {
|
||||||
if(emap.count(where)) return emap[where];
|
if(emap.count(where)) return emap[where];
|
||||||
return getBits(where);
|
return getBits(where) & ((1<<numbits)-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
EX int countBits(int c) {
|
EX int countBits(int c) {
|
||||||
|
|
|
@ -153,12 +153,14 @@ EX bool collectItem(cell *c2, bool telekinesis IS(false)) {
|
||||||
else if(c2->item == itBabyTortoise) {
|
else if(c2->item == itBabyTortoise) {
|
||||||
using namespace tortoise;
|
using namespace tortoise;
|
||||||
int bnew = babymap[c2];
|
int bnew = babymap[c2];
|
||||||
|
changes.map_value(babymap, c2);
|
||||||
babymap.erase(c2);
|
babymap.erase(c2);
|
||||||
int bold = seekbits;
|
int bold = seekbits;
|
||||||
seekbits = bnew;
|
seekbits = bnew;
|
||||||
changes.value_set(tortoise::last, seekbits);
|
changes.value_set(tortoise::last, seekbits);
|
||||||
if(seek()) {
|
if(seek()) {
|
||||||
cell *c = passable(cwt.at, NULL, 0) ? cwt.at : c2;
|
cell *c = passable(cwt.at, NULL, 0) ? cwt.at : c2;
|
||||||
|
changes.ccell(c);
|
||||||
c->item = itBabyTortoise;
|
c->item = itBabyTortoise;
|
||||||
if(c == c2) dopickup = false;
|
if(c == c2) dopickup = false;
|
||||||
changes.map_value(babymap, c);
|
changes.map_value(babymap, c);
|
||||||
|
|
|
@ -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) {
|
if(!c->monst && !tactic::on && !racing::on && !yendor::on && !randomPatternsMode && !peace::on && !euclid && hrand(4000) < 10 && !safety) {
|
||||||
c->item = itBabyTortoise;
|
c->item = itBabyTortoise;
|
||||||
tortoise::babymap[c] = getBits(c) ^ tortoise::getRandomBits();
|
tortoise::babymap[c] = tortoise::getb(c) ^ tortoise::getRandomBits();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue