1
0
Fork 0
forked from fte/fteqw

Load from wad files only when there isn't already a fallback. This reduces confusion over textures with the same name.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5909 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-06-21 15:03:04 +00:00
parent f810be4830
commit 0c41ac0b7d

View file

@ -14124,6 +14124,8 @@ static void Image_LoadHiResTextureWorker(void *ctx, void *data, size_t a, size_t
}
}
if (!tex->fallbackdata)
{
//now look in wad files and swap over the fallback. (halflife compatability)
COM_StripExtension(tex->ident, fname, sizeof(fname));
buf = W_GetTexture(fname, &imgwidth, &imgheight, &format);
@ -14135,6 +14137,7 @@ static void Image_LoadHiResTextureWorker(void *ctx, void *data, size_t a, size_t
tex->fallbackwidth = imgwidth;
tex->fallbackheight = imgheight;
}
}
if (tex->fallbackdata)
{