1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

fixed a crash when running away from Clearing in single-land mode.

This commit is contained in:
Zeno Rogue 2024-03-21 18:19:28 +01:00
parent 616607dc8e
commit 9430c26970

View File

@ -2317,7 +2317,7 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
int d = -celldistAlt(c);
if(hrand_monster(2500) < items[itMutant2] + yendor::hardness() - 10 && !reptilecheat)
c->monst = moRedFox;
else if(hrand(100 + d) < d && !reptilecheat)
else if(d > 0 && hrand(100 + d) < d && !reptilecheat)
c->item = itMutant2;
}
}