From 93f6f0a33f3d86e0aad48975c3fef7bd2f29cd1b Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 29 Aug 2007 05:29:37 +0000 Subject: [PATCH] git-svn-id: https://svn.eduke32.com/eduke32@569 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamedef.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 9aa9ec8f1..ec8e7e93b 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -1477,6 +1477,15 @@ static int parsecommand(void) char *temptextptr; long *tempscrptr; +#if (defined RENDERTYPEWIN || (defined RENDERTYPESDL && !defined __APPLE__ && defined HAVE_GTK2)) + if (quitevent) + { + initprintf("Aborted.\n"); + Shutdown(); + exit(0); + } +#endif + if ((unsigned)(scriptptr-script) > (unsigned)(g_ScriptSize-128)) { long oscriptptr = (unsigned)(scriptptr-script);