summaryrefslogtreecommitdiff
path: root/intro_gui.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-06 16:21:35 +0000
committerdarkvater <darkvater@openttd.org>2004-09-06 16:21:35 +0000
commited1798de42c7726c7dc934d738e0ded04e5b6d7b (patch)
treee69497f633793aa673e77d3d24f1c224838f64c7 /intro_gui.c
parent692c147faef712cd03000d6b84ef236f81ca0cd4 (diff)
downloadopenttd-ed1798de42c7726c7dc934d738e0ded04e5b6d7b.tar.xz
(svn r162) -Feature: when exit game window pops up, 'Enter' quits the game
Diffstat (limited to 'intro_gui.c')
-rw-r--r--intro_gui.c4
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;
}
}