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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user