Only P_InitPicAnims when wads are loaded.
Not in P_SetupLevel. That's just dumb.
This commit is contained in:
1 parent
aa3e52f05e
commit
cdb841ef54
2 files changed
+6
-4
No files matched your search
+3
-4
@@ -2587,10 +2587,6 @@ boolean P_SetupLevel(boolean skipprecip)
|
||||
R_ReInitColormaps(mapheaderinfo[gamemap-1]->palette);
|
||||
CON_ReSetupBackColormap(mapheaderinfo[gamemap-1]->palette);
|
||||
|
||||
// now part of level loading since in future each level may have
|
||||
// its own anim texture sequences, switches etc.
|
||||
P_InitPicAnims();
|
||||
|
||||
// SRB2 determines the sky texture to be used depending on the map header.
|
||||
P_SetupLevelSky(mapheaderinfo[gamemap-1]->skynum, true);
|
||||
|
||||
@@ -3001,6 +2997,9 @@ boolean P_AddWadFile(const char *wadfilename, char **firstmapname)
|
||||
else
|
||||
R_FlushTextureCache(); // just reload it from file
|
||||
|
||||
// Reload ANIMATED / ANIMDEFS
|
||||
P_InitPicAnims();
|
||||
|
||||
// Flush and reload HUD graphics
|
||||
ST_UnloadGraphics();
|
||||
HU_LoadGraphics();
|
||||
|
||||
@@ -1499,6 +1499,9 @@ void R_InitData(void)
|
||||
CONS_Printf("R_LoadTextures()...\n");
|
||||
R_LoadTextures();
|
||||
|
||||
CONS_Printf("P_InitPicAnims()...\n");
|
||||
P_InitPicAnims();
|
||||
|
||||
CONS_Printf("R_InitSprites()...\n");
|
||||
R_InitSpriteLumps();
|
||||
R_InitSprites();
|
||||
|
||||
Reference in new issue
Block a user