game.c: fix -game_dir and -j by moving G_ExtInit() after G_CheckCommandLine().

git-svn-id: https://svn.eduke32.com/eduke32@4571 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2014-08-08 20:02:56 +00:00
parent 757dbe9d6b
commit 3aaf167d6b

View file

@ -11156,8 +11156,6 @@ int32_t app_main(int32_t argc, const char **argv)
if (!usecwd)
G_AddSearchPaths();
G_ExtInit();
g_numSkills = 4;
ud.multimode = 1;
@ -11165,11 +11163,16 @@ int32_t app_main(int32_t argc, const char **argv)
G_AddDef("duke3d-android.def");
#endif
// this needs to happen before G_CheckCommandLine because G_GameExit accesses g_player[0]
// This needs to happen before G_CheckCommandLine() because G_GameExit()
// accesses g_player[0].
G_MaybeAllocPlayer(0);
G_CheckCommandLine(argc,argv);
// This needs to happen afterwards, as G_CheckCommandLine() is where we set
// up the command-line-provided search paths (duh).
G_ExtInit();
#if defined(RENDERTYPEWIN) && defined(USE_OPENGL)
if (forcegl) initprintf("GL driver blacklist disabled.\n");
#endif