Make it search id1 for maps

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1379 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-09-26 11:32:00 +00:00
parent ad3f2c26ac
commit da15b1fb17

View file

@ -213,10 +213,14 @@ bsp_t *BSP_LoadModel(char *gamedir, char *bspname)
data = ReadFile_WINDOWSSUCKS(gamedir, bspname, &size); data = ReadFile_WINDOWSSUCKS(gamedir, bspname, &size);
if (!data) if (!data)
{
data = ReadFile_WINDOWSSUCKS("id1", bspname, &size);
if (!data)
{ {
printf("Couldn't open bsp file \"%s\" (gamedir \"%s\")\n", bspname, gamedir); printf("Couldn't open bsp file \"%s\" (gamedir \"%s\")\n", bspname, gamedir);
return NULL; return NULL;
} }
}
header = (dheader_t*)data; header = (dheader_t*)data;