mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +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..
|
||||
/*else if (sc.Compare("#include"))
|
||||
else if (sc.Compare("#include"))
|
||||
{
|
||||
sc.MustGetString();
|
||||
// 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);
|
||||
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
|
||||
{
|
||||
ParseModelDefLump(includelump);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue