Skip to content

Commit

Permalink
Make Esc be equivalent to clicking the return button in the pre-game …
Browse files Browse the repository at this point in the history
…"multiop" menu.

Weird stuff could happen, such as the client thinking it's a host when it isn't.

Changelog: Fix clients getting confused when trying to leave a game before it starts by pressing the Escape key.
  • Loading branch information
Cyp committed Jan 17, 2011
1 parent 89d8b59 commit 9cacfc5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/multiint.c
Expand Up @@ -3288,7 +3288,14 @@ void runMultiOptions(void)

if (CancelPressed())
{
changeTitleMode(lastTitleMode);
if (multiRequestUp)
{
changeTitleMode(lastTitleMode);
}
else
{
processMultiopWidgets(CON_CANCEL); // "Press" the cancel button to clean up net connections and stuff.
}
}
}

Expand Down

0 comments on commit 9cacfc5

Please sign in to comment.