take namespace enum out of namespace and added CheckNumForAnyName and CheckNumForFullNameInFile to clarify the meaning of CheckNumForFullName.
This is to take some renaming noise out of the upcoming refactoring.
This commit is contained in:
parent
ba2800d698
commit
634a646c2d
51 changed files with 118 additions and 122 deletions
|
|
@ -134,7 +134,7 @@ static void ParseVavoomSkybox()
|
|||
sc.MustGetStringName("map");
|
||||
sc.MustGetString();
|
||||
|
||||
maplump = fileSystem.CheckNumForFullName(sc.String, true);
|
||||
maplump = fileSystem.CheckNumForAnyName(sc.String);
|
||||
|
||||
auto tex = TexMan.FindGameTexture(sc.String, ETextureType::Wall, FTextureManager::TEXMAN_TryAny);
|
||||
if (tex == NULL)
|
||||
|
|
@ -1928,7 +1928,7 @@ public:
|
|||
{
|
||||
sc.MustGetString();
|
||||
// This is not using sc.Open because it can print a more useful error message when done here
|
||||
lump = fileSystem.CheckNumForFullName(sc.String, true);
|
||||
lump = fileSystem.CheckNumForAnyName(sc.String);
|
||||
if (lump==-1)
|
||||
sc.ScriptError("Lump '%s' not found", sc.String);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue