Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect invalid menu item selections in L4D-based games (#1543)
Some games have implemented CHudMenu::SelectMenuItem to close the menu even if an invalid slot has been selected, which causes us a problem as we'll never get any notification from the client and we'll keep the menu alive on our end indefinitely. For these games, pretend that every slot is valid for selection so we're guaranteed to get a menuselect command. We don't want to do this for every game as the common SelectMenuItem implementation ignores invalid selections and keeps the menu open, which is a much nicer user experience. Fixes #1385
- Loading branch information
Showing
2 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters