mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- parse GLDEFS and its game-specific variants in lump order instead of both names sequentially.
This commit is contained in:
parent
9948189193
commit
6ab8e90911
1 changed files with 5 additions and 4 deletions
|
@ -48,6 +48,7 @@
|
||||||
#include "stats.h"
|
#include "stats.h"
|
||||||
#include "zstring.h"
|
#include "zstring.h"
|
||||||
#include "d_dehacked.h"
|
#include "d_dehacked.h"
|
||||||
|
#include "v_text.h"
|
||||||
|
|
||||||
|
|
||||||
#include "gl/dynlights/gl_dynlight.h"
|
#include "gl/dynlights/gl_dynlight.h"
|
||||||
|
@ -1339,9 +1340,10 @@ void gl_DoParseDefs(FScanner &sc, int workingLump)
|
||||||
void gl_LoadGLDefs(const char *defsLump)
|
void gl_LoadGLDefs(const char *defsLump)
|
||||||
{
|
{
|
||||||
int workingLump, lastLump;
|
int workingLump, lastLump;
|
||||||
|
static const char *gldefsnames[] = { "GLDEFS", defsLump, nullptr };
|
||||||
|
|
||||||
lastLump = 0;
|
lastLump = 0;
|
||||||
while ((workingLump = Wads.FindLump(defsLump, &lastLump)) != -1)
|
while ((workingLump = Wads.FindLumpMulti(gldefsnames, &lastLump)) != -1)
|
||||||
{
|
{
|
||||||
FScanner sc(workingLump);
|
FScanner sc(workingLump);
|
||||||
gl_DoParseDefs(sc, workingLump);
|
gl_DoParseDefs(sc, workingLump);
|
||||||
|
@ -1383,8 +1385,7 @@ void gl_ParseDefs()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
gl_ParseVavoomSkybox();
|
gl_ParseVavoomSkybox();
|
||||||
if (defsLump != NULL) gl_LoadGLDefs(defsLump);
|
gl_LoadGLDefs(defsLump);
|
||||||
gl_LoadGLDefs("GLDEFS");
|
|
||||||
gl_InitializeActorLights();
|
gl_InitializeActorLights();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue