Skip to content

Commit

Permalink
Merge pull request #36214 from Night-Pryanik/search-radius
Browse files Browse the repository at this point in the history
Revert limiting search radius for listing bionics to 3 tiles
  • Loading branch information
ZhilkinSerg authored Dec 18, 2019
2 parents 5909ad9 + f6e0d84 commit a792aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/computer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ void computer::activate_function( computer_action action )
g->u.moves -= 30;
std::vector<std::string> names;
int more = 0;
for( const tripoint &p : g->m.points_in_radius( g->u.pos(), 3 ) ) {
for( const tripoint &p : g->m.points_on_zlevel() ) {
for( item &elem : g->m.i_at( p ) ) {
if( elem.is_bionic() ) {
if( static_cast<int>( names.size() ) < TERMY - 8 ) {
Expand Down

0 comments on commit a792aa3

Please sign in to comment.