diff options
author | Simon Howard | 2014-03-27 22:44:19 -0400 |
---|---|---|
committer | Simon Howard | 2014-03-27 22:44:19 -0400 |
commit | 840e87ce39fe2319cbcfc4ff97c2781ce36e5549 (patch) | |
tree | e93189d537f2c8fe440c85c6c39f1e2a4df9a2b7 /src/hexen/st_start.c | |
parent | cea768a93430b1823cc3d2e683282833b70b75f1 (diff) | |
download | chocolate-doom-840e87ce39fe2319cbcfc4ff97c2781ce36e5549.tar.gz chocolate-doom-840e87ce39fe2319cbcfc4ff97c2781ce36e5549.tar.bz2 chocolate-doom-840e87ce39fe2319cbcfc4ff97c2781ce36e5549.zip |
hexen: Allow abort on startup by pressing escape.
Vanilla Hexen allows the game startup to be aborted by pressing the
escape key. This can also be used to abort netgame startup. Add back
this functionality by polling the SDL event loop; this feature only
works if the graphical startup is enabled, but that's good enough.
Diffstat (limited to 'src/hexen/st_start.c')
-rw-r--r-- | src/hexen/st_start.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hexen/st_start.c b/src/hexen/st_start.c index 58df878e..b8cf389a 100644 --- a/src/hexen/st_start.c +++ b/src/hexen/st_start.c @@ -204,11 +204,11 @@ void ST_UpdateNetNotches(int notchPosition) void ST_Progress(void) { - // haleyjd FIXME: any way to get input here? SDL event loop? -#ifdef __WATCOMC__ // Check for ESC press -- during startup all events eaten here - I_StartupReadKeys(); -#endif + if (I_CheckAbortHR()) + { + I_Quit(); + } if (using_graphical_startup) { |