Skip to content

Commit

Permalink
Merge pull request #38381 from chrimchim/veh-hotkey
Browse files Browse the repository at this point in the history
Vehicle Hotkey Fix
  • Loading branch information
kevingranade authored Mar 2, 2020
2 parents be10d17 + 80f5706 commit b4d7ab4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/veh_interact.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,12 @@ bool veh_interact::overview( std::function<bool( const vehicle_part &pt )> enabl
if( hotkey == '{' ) {
hotkey = 'A';
}

while( hotkey == 'c' || hotkey == 'g' || hotkey == 'j' || hotkey == 'k' || hotkey == 'l' ||
hotkey == 'p' || hotkey == 'q' || hotkey == 't' || hotkey == 'v' || hotkey == 'x' ||
hotkey == 'z' ) {
hotkey += 1;
}
return hotkey;
};

Expand Down

0 comments on commit b4d7ab4

Please sign in to comment.