- remove texture name length limits for udmf maps
This commit is contained in:
parent
ae8995e65b
commit
59885b856d
12 changed files with 1383 additions and 1377 deletions
|
|
@ -492,7 +492,7 @@ int FWadCollection::CheckNumForFullName (const char *name, bool trynormal, int n
|
|||
return -1;
|
||||
}
|
||||
|
||||
i = FirstLumpIndex_FullName[MakeKey (name) % NumLumps];
|
||||
i = FirstLumpIndex_FullName[MakeKey(name) % NumLumps];
|
||||
|
||||
while (i != NULL_INDEX && stricmp(name, LumpInfo[i].lump->FullName))
|
||||
{
|
||||
|
|
@ -1015,6 +1015,16 @@ void FWadCollection::GetLumpName (char *to, int lump) const
|
|||
uppercopy (to, LumpInfo[lump].lump->Name);
|
||||
}
|
||||
|
||||
void FWadCollection::GetLumpName(FString &to, int lump) const
|
||||
{
|
||||
if ((size_t)lump >= NumLumps)
|
||||
to = FString();
|
||||
else {
|
||||
to = LumpInfo[lump].lump->Name;
|
||||
to.ToUpper();
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// FWadCollection :: GetLumpFullName
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue