mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-27 17:34:53 +00:00
fixed a possible crash after killing 400 mutants
This commit is contained in:
parent
824fa9a732
commit
7fc90f116b
@ -2586,7 +2586,7 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
|
|||||||
treasure_rate += variant::features[i].rate_change;
|
treasure_rate += variant::features[i].rate_change;
|
||||||
variant::features[i].build(c);
|
variant::features[i].build(c);
|
||||||
}
|
}
|
||||||
if(hrand(2000 - PT(kills[moVariantWarrior] * 5, 250)) < treasure_rate && !c->wall && !c->monst)
|
if(hrand(max(100, 2000 - PT(kills[moVariantWarrior] * 5, 250))) < treasure_rate && !c->wall && !c->monst)
|
||||||
c->item = itVarTreasure;
|
c->item = itVarTreasure;
|
||||||
}
|
}
|
||||||
if(d == 7 && c->wall == waTrapdoor) {
|
if(d == 7 && c->wall == waTrapdoor) {
|
||||||
|
Loading…
Reference in New Issue
Block a user