From 840e87ce39fe2319cbcfc4ff97c2781ce36e5549 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 27 Mar 2014 22:44:19 -0400 Subject: 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. --- src/hexen/d_net.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/hexen/d_net.c') 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(); } // -- cgit v1.2.3