Skip to content

Commit

Permalink
Remove duplicate shortcut keys from interaction menu
Browse files Browse the repository at this point in the history
Fixes CleverRaven#51772

Co-authored-by: David Seguin <davidseguin@live.ca>
  • Loading branch information
UmbralReaper and dseguin committed Sep 22, 2021
1 parent 423e7b8 commit e921617
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/monexamine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,9 @@ bool monexamine::pet_menu( monster &z )
amenu.addentry( push_monster, true, 'p', _( "Push %s" ), pet_name );
if( z.has_effect( effect_leashed ) ) {
if( z.has_effect( effect_led_by_leash ) ) {
amenu.addentry( stop_lead, true, 'p', _( "Stop leading %s" ), pet_name );
amenu.addentry( stop_lead, true, 'l', _( "Stop leading %s" ), pet_name );
} else {
amenu.addentry( lead, true, 'p', _( "Lead %s by the leash" ), pet_name );
amenu.addentry( lead, true, 'l', _( "Lead %s by the leash" ), pet_name );
}
}
amenu.addentry( rename, true, 'e', _( "Rename" ) );
Expand Down Expand Up @@ -613,7 +613,7 @@ bool monexamine::pet_menu( monster &z )
}
if( z.has_effect( effect_leashed ) && !z.has_effect( effect_tied ) ) {
amenu.addentry( tie, true, 't', _( "Tie" ) );
amenu.addentry( unleash, true, 't', _( "Remove leash from %s" ), pet_name );
amenu.addentry( unleash, true, 'L', _( "Remove leash from %s" ), pet_name );
}
if( !z.has_effect( effect_leashed ) && !z.has_flag( MF_RIDEABLE_MECH ) ) {
std::vector<item *> rope_inv = player_character.items_with( []( const item & itm ) {
Expand Down

0 comments on commit e921617

Please sign in to comment.