From 277f29f60834b9464cffe8587d172b0a53a80c46 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 1 Mar 2020 02:58:48 +0100 Subject: [PATCH] limited the world size to 10^7553 --- landgen.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/landgen.cpp b/landgen.cpp index ef64697f..6c1899d6 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -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))