Skip to content

Commit 01c0128

Browse files
authored
do not list items that can be installed in vehicles if they cannot be (#82901)
2 parents 7e89b44 + 3eed3c3 commit 01c0128

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/item.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6216,7 +6216,9 @@ void item::final_info( std::vector<iteminfo> &info, const iteminfo_query *parts,
62166216

62176217
print_parts( vparts, _( "You could install it in a vehicle: %s" ),
62186218
[]( const vpart_info & vp ) {
6219-
return !vp.has_flag( vpart_bitflags::VPFLAG_APPLIANCE );
6219+
return !vp.has_flag( vpart_bitflags::VPFLAG_APPLIANCE ) &&
6220+
!vp.has_flag( "NO_INSTALL_HIDDEN" ) &&
6221+
!vp.has_flag( "NO_INSTALL_PLAYER" );
62206222
} );
62216223

62226224
print_parts( vparts, _( "You could install it as an appliance: %s" ),

0 commit comments

Comments
 (0)