limited the world size to 10^7553

This commit is contained in:
Zeno Rogue 2020-03-01 02:58:48 +01:00
parent de60f18636
commit 277f29f608
1 changed files with 6 additions and 0 deletions

View File

@ -2897,6 +2897,12 @@ EX void setdist(cell *c, int d, cell *from) {
if(d == min(reduced_barlev, 9)) moreBigStuff(c);
if(d == 7) repairLandgen(c);
// the number of tiles in the standard geometry has about 7553 digits!
if(c->master->distance > 32000 || c->master->distance < -32000) {
c->wall = waNone;
c->item = itOrbSafety;
}
ONEMPTY if(!c->item) {
if(isCrossroads(c->land))