change wad error to non-fatal

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1743 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-12-29 00:18:23 +00:00
parent 6f52e8ea5a
commit ad4568a186
1 changed files with 7 additions and 1 deletions

View File

@ -90,7 +90,13 @@ void W_LoadWadFile (char *filename)
|| header->identification[1] != 'A'
|| header->identification[2] != 'D'
|| header->identification[3] != '2')
Sys_Error ("Wad file %s doesn't have WAD2 id\n",filename);
{
Con_Printf ("W_LoadWadFile: Wad file %s doesn't have WAD2 id\n",filename);
wad_numlumps = 0;
Z_Free(wad_base);
wad_base = NULL;
return;
}
wad_numlumps = LittleLong(header->numlumps);
infotableofs = LittleLong(header->infotableofs);