Skip to content

Commit

Permalink
Conduct second check only if first check is failed, not unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-Pryanik committed Oct 5, 2024
1 parent 65aca7f commit 4dec931
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5577,8 +5577,7 @@ void game::control_vehicle()
} else {
return;
}
}
if( weapon->is_two_handed( u ) ) {
} else if( weapon->is_two_handed( u ) ) {
if( query_yn(
_( "You can't drive because you have to wield a %s with both hands.\n\nPut it away?" ),
weapon->tname() ) ) {
Expand Down

0 comments on commit 4dec931

Please sign in to comment.