1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-14 05:57:37 +00:00

location.cpp now defines constants global_distance_limit and iteration_limit

This commit is contained in:
Zeno Rogue
2020-03-01 14:36:35 +01:00
parent c1c4cea31f
commit b0eb4e816b
5 changed files with 48 additions and 36 deletions

View File

@@ -2899,7 +2899,8 @@ EX void setdist(cell *c, int d, cell *from) {
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) {
int gdist = abs(c->master->distance);
if(gdist > global_distance_limit) {
c->wall = waNone;
c->item = itOrbSafety;
}