Skip to content

Commit

Permalink
Massively increase overmap UI search range (#76072)
Browse files Browse the repository at this point in the history
  • Loading branch information
RenechCDDA authored Sep 1, 2024
1 parent 9360bf6 commit f8b921d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/overmap_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ static bool search( const ui_adaptor &om_ui, tripoint_abs_omt &curs, const tripo
std::vector<point_abs_omt> locations;
std::vector<point_abs_om> overmap_checked;

const int radius = OMAPX; // arbitrary
const int radius = OMAPX * 5; // arbitrary
for( const tripoint_abs_omt &p : points_in_radius( curs, radius ) ) {
overmap_with_local_coords om_loc = overmap_buffer.get_existing_om_global( p );

Expand All @@ -1342,7 +1342,7 @@ static bool search( const ui_adaptor &om_ui, tripoint_abs_omt &curs, const tripo

if( locations.empty() ) {
sfx::play_variant_sound( "menu_error", "default", 100 );
popup( _( "No results found." ) );
popup( _( "No results found within %d tiles." ), radius );
return false;
}

Expand Down

0 comments on commit f8b921d

Please sign in to comment.