Move cacheAllSounds() out of G_CacheMapData() and into G_Startup()

git-svn-id: https://svn.eduke32.com/eduke32@7758 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-07-06 16:30:30 +00:00 committed by Christoph Oelckers
parent 38fe40abf2
commit 130649b017
2 changed files with 2 additions and 1 deletions

View file

@ -6013,6 +6013,8 @@ static void G_Startup(void)
else if (artLoadFiles("tiles%03d.art",MAXCACHE1DSIZE) < 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;

View file

@ -469,7 +469,6 @@ void G_CacheMapData(void)
uint32_t const cacheStartTime = timerGetTicks();
cacheAllSounds();
cacheFlaggedTiles();
for (int i=0; i<numwalls; i++)