mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
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:
parent
ad3f2c26ac
commit
da15b1fb17
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue