Skip to content

Commit

Permalink
Fixed list of bionics showing item durability indicator (#36123)
Browse files Browse the repository at this point in the history
* Fixed list of bionics showing item durability indicator

* 3 tiles max
  • Loading branch information
Anton Burmistrov authored and ZhilkinSerg committed Dec 15, 2019
1 parent 7e76483 commit 28ab720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/computer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,11 +707,11 @@ 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_on_zlevel() ) {
for( const tripoint &p : g->m.points_in_radius( g->u.pos(), 3 ) ) {
for( item &elem : g->m.i_at( p ) ) {
if( elem.is_bionic() ) {
if( static_cast<int>( names.size() ) < TERMY - 8 ) {
names.push_back( elem.tname() );
names.push_back( elem.type_name() );
} else {
more++;
}
Expand Down

0 comments on commit 28ab720

Please sign in to comment.