game.cpp: move check for quitevent during start-up so that if start-up is cancelled during definitions parsing, the game won't continue to play in a half-loaded state.

git-svn-id: https://svn.eduke32.com/eduke32@7900 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
pogokeen 2019-08-07 20:28:28 +00:00 committed by Christoph Oelckers
parent 90568878a5
commit 091a2961ab

View file

@ -6457,8 +6457,6 @@ int app_main(int argc, char const * const * argv)
i = 1-i;
}
if (quitevent) return 4;
Anim_Init();
const char *defsfile = G_DefFile();
@ -6567,6 +6565,8 @@ int app_main(int argc, char const * const * argv)
system_getcvars();
if (quitevent) return 4;
if (g_networkMode != NET_DEDICATED_SERVER)
{
if (videoSetGameMode(ud.setup.fullscreen, ud.setup.xdim, ud.setup.ydim, ud.setup.bpp, ud.detail) < 0)