mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-19 13:41:11 +00:00
(svn r162) -Feature: when exit game window pops up, 'Enter' quits the game
This commit is contained in:
parent
692c147fae
commit
ed1798de42
@ -210,6 +210,10 @@ static void AskAbandonGameWndProc(Window *w, WindowEvent *e) {
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case WE_KEYPRESS: /* Exit game on pressing 'Enter' */
|
||||
if (e->keypress.keycode == WKC_RETURN)
|
||||
_exit_game = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user