mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-07 16:31:07 +00:00
- enable #include support in modeldef files
This commit is contained in:
parent
496e6e2e8f
commit
fb9cf33af6
1 changed files with 8 additions and 3 deletions
|
@ -845,16 +845,21 @@ static void ParseModelDefLump(int Lump)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// This code is commented out because Gene Tech has broken include statements that blocks this feature..
|
// This code is commented out because Gene Tech has broken include statements that blocks this feature..
|
||||||
/*else if (sc.Compare("#include"))
|
else if (sc.Compare("#include"))
|
||||||
{
|
{
|
||||||
sc.MustGetString();
|
sc.MustGetString();
|
||||||
// This is not using sc.Open because it can print a more useful error message when done here
|
// This is not using sc.Open because it can print a more useful error message when done here
|
||||||
int includelump = Wads.CheckNumForFullName(sc.String, true);
|
int includelump = Wads.CheckNumForFullName(sc.String, true);
|
||||||
if (includelump == -1)
|
if (includelump == -1)
|
||||||
sc.ScriptError("Lump '%s' not found", sc.String);
|
{
|
||||||
|
if (strcmp(sc.String, "sentinel.modl") != 0) // Gene Tech mod has a broken #include statement
|
||||||
|
sc.ScriptError("Lump '%s' not found", sc.String);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
ParseModelDefLump(includelump);
|
ParseModelDefLump(includelump);
|
||||||
}*/
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue