- fixed: ZDoom aborted on old WADs containing a binary LANGUAGE lump.

SVN r2414 (trunk)
This commit is contained in:
Christoph Oelckers 2010-07-06 20:32:24 +00:00
commit ea04d2bbdf
3 changed files with 30 additions and 0 deletions

View file

@ -331,6 +331,24 @@ void FScanner::RestorePos (const FScanner::SavedPos &pos)
Crossed = false;
}
//==========================================================================
//
// FScanner :: isText
//
// Checks if this is a text file.
//
//==========================================================================
bool FScanner::isText()
{
for(unsigned int i=0;i<ScriptBuffer.Len();i++)
{
int c = ScriptBuffer[i];
if (c < ' ' && c != '\n' && c != '\r' && c != '\t') return false;
}
return true;
}
//==========================================================================
//
// FScanner :: SetCMode