remove length check from ExtractFileBase()

This allows us to load demos with filenames longer than 8 characters.
This commit is contained in:
Fabian Greffrath 2020-01-16 10:30:30 +01:00
parent 6be3ec2d9e
commit 51b138b026

View File

@ -67,7 +67,11 @@ void ExtractFileBase(const char *path, char *dest)
while (*src && *src != '.') while (*src && *src != '.')
if (++length == 9) if (++length == 9)
I_Error ("Filename base of %s >8 chars",path); {
// [FG] remove length check
printf ("Filename base of %s >8 chars",path);
break;
}
else else
*dest++ = toupper(*src++); *dest++ = toupper(*src++);
} }