1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-17 11:39:11 +00:00

(svn r162) -Feature: when exit game window pops up, 'Enter' quits the game

This commit is contained in:
darkvater
2004-09-06 16:21:35 +00:00
parent 692c147fae
commit ed1798de42

View File

@@ -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;
}
}