summaryrefslogtreecommitdiff
path: root/src/hexen/d_net.c
diff options
context:
space:
mode:
authorSimon Howard2014-03-27 22:44:19 -0400
committerSimon Howard2014-03-27 22:44:19 -0400
commit840e87ce39fe2319cbcfc4ff97c2781ce36e5549 (patch)
treee93189d537f2c8fe440c85c6c39f1e2a4df9a2b7 /src/hexen/d_net.c
parentcea768a93430b1823cc3d2e683282833b70b75f1 (diff)
downloadchocolate-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/d_net.c')
-rw-r--r--src/hexen/d_net.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hexen/d_net.c b/src/hexen/d_net.c
index f3b7766e..5c64f7ed 100644
--- a/src/hexen/d_net.c
+++ b/src/hexen/d_net.c
@@ -33,6 +33,7 @@
#include "i_system.h"
#include "i_timer.h"
#include "i_video.h"
+#include "i_videohr.h"
#include "h2def.h"
#include "p_local.h"
#include "s_sound.h"
@@ -239,7 +240,8 @@ static boolean StartupProgress(int now_ready, int total)
ready = now_ready;
- return true;
+ // Allow the user to hit escape during netgame startup to abort.
+ return !I_CheckAbortHR();
}
//