Skip to content

Commit

Permalink
Limit start location search radius
Browse files Browse the repository at this point in the history
32 was an arbitrary number
  • Loading branch information
ZhilkinSerg committed Mar 24, 2019
1 parent 980ca05 commit d24f572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/start_location.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ tripoint start_location::find_player_initial_location() const
popup_nowait( _( "Please wait as we build your world" ) );
// Spiral out from the world origin scanning for a compatible starting location,
// creating overmaps as necessary.
const int radius = 32;
const int radius = 3;
for( const point &omp : closest_points_first( radius, point_zero ) ) {
overmap &omap = overmap_buffer.get( omp.x, omp.y );
const tripoint omtstart = omap.find_random_omt( target() );
Expand Down

0 comments on commit d24f572

Please sign in to comment.