Skip to content

Commit

Permalink
Filter out inactive fakes in look around
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingranade committed May 29, 2022
1 parent 5060877 commit b0077ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vehicle_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,16 @@ int vehicle::print_part_list( const catacurses::window &win, int y1, const int m
std::vector<int> pl = this->parts_at_relative( parts[p].mount, true, true );
int y = y1;
for( size_t i = 0; i < pl.size(); i++ ) {
const vehicle_part &vp = parts[ pl [ i ] ];
if( vp.is_fake && !vp.is_active_fake ) {
continue;
}
if( y >= max_y ) {
mvwprintz( win, point( 1, y ), c_yellow, _( "More parts here…" ) );
++y;
break;
}

const vehicle_part &vp = parts[ pl [ i ] ];

std::string partname = vp.name();

Expand Down

0 comments on commit b0077ce

Please sign in to comment.