diff options
author | darkvater <darkvater@openttd.org> | 2004-09-06 16:21:35 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-09-06 16:21:35 +0000 |
commit | ed1798de42c7726c7dc934d738e0ded04e5b6d7b (patch) | |
tree | e69497f633793aa673e77d3d24f1c224838f64c7 | |
parent | 692c147faef712cd03000d6b84ef236f81ca0cd4 (diff) | |
download | openttd-ed1798de42c7726c7dc934d738e0ded04e5b6d7b.tar.xz |
(svn r162) -Feature: when exit game window pops up, 'Enter' quits the game
-rw-r--r-- | intro_gui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intro_gui.c b/intro_gui.c index 41cf45994..f53ab4145 100644 --- a/intro_gui.c +++ b/intro_gui.c @@ -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; } } |