- Integrated xlatcc into ZDoom.exe so that the linedef translation files

don't need to be compiled and can be stored as text in zdoom.pk3.


SVN r815 (trunk)
This commit is contained in:
Christoph Oelckers 2008-03-19 21:09:53 +00:00
commit 8ea316e33b
29 changed files with 2952 additions and 4830 deletions

View file

@ -916,7 +916,7 @@ int FWadCollection::GetNumForName (const char *name, int space)
//
//==========================================================================
int FWadCollection::CheckNumForFullName (const char *name)
int FWadCollection::CheckNumForFullName (const char *name, bool trynormal)
{
WORD i;
@ -932,7 +932,13 @@ int FWadCollection::CheckNumForFullName (const char *name)
i = NextLumpIndex_FullName[i];
}
return i != NULL_INDEX ? i : -1;
if (i != NULL_INDEX) return i;
if (trynormal && strlen(name) <= 8 && !strpbrk(name, "./"))
{
return CheckNumForName(name, ns_global);
}
return -1;
}
int FWadCollection::CheckNumForFullName (const char *name, int wadnum)