mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 16:41:22 +00:00
- fixed: DECORATE was creating a new global constant namespace for each single included file, not just once per DECORATE lump.
This commit is contained in:
parent
949862f78f
commit
15b95cc023
2 changed files with 5 additions and 5 deletions
|
@ -1217,9 +1217,8 @@ static void ParseDamageDefinition(FScanner &sc)
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
void ParseDecorate (FScanner &sc)
|
void ParseDecorate (FScanner &sc, PNamespace *ns)
|
||||||
{
|
{
|
||||||
auto ns = Namespaces.NewNamespace(sc.LumpNum);
|
|
||||||
// Get actor class name.
|
// Get actor class name.
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
|
@ -1245,7 +1244,7 @@ void ParseDecorate (FScanner &sc)
|
||||||
}
|
}
|
||||||
FScanner newscanner;
|
FScanner newscanner;
|
||||||
newscanner.Open(sc.String);
|
newscanner.Open(sc.String);
|
||||||
ParseDecorate(newscanner);
|
ParseDecorate(newscanner, ns);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1308,6 +1307,7 @@ void ParseAllDecorate()
|
||||||
while ((lump = Wads.FindLump("DECORATE", &lastlump)) != -1)
|
while ((lump = Wads.FindLump("DECORATE", &lastlump)) != -1)
|
||||||
{
|
{
|
||||||
FScanner sc(lump);
|
FScanner sc(lump);
|
||||||
ParseDecorate(sc);
|
auto ns = Namespaces.NewNamespace(sc.LumpNum);
|
||||||
|
ParseDecorate(sc, ns);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue