Fix cacheAllSounds() being called before .def parsing... oops!

git-svn-id: https://svn.eduke32.com/eduke32@8404 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-12-07 23:52:40 +00:00 committed by Christoph Oelckers
parent f5e3b4bb5a
commit 694863a8a1

View file

@ -5705,8 +5705,6 @@ static void G_Startup(void)
if (TileFiles.artLoadFiles("tiles%03i.art") < 0)
G_GameExit("Failed loading art.");
cacheAllSounds();
// Make the fullscreen nuke logo background non-fullbright. Has to be
// after dynamic tile remapping (from C_Compile) and loading tiles.
picanm[LOADSCREEN].sf |= PICANM_NOFULLBRIGHT_BIT;
@ -5951,6 +5949,8 @@ int GameInterface::app_main()
userConfig.AddDefs.reset();
cacheAllSounds();
if (enginePostInit())
G_FatalEngineError();