mdsprite: don't try to factor textures from fallback skins

git-svn-id: https://svn.eduke32.com/eduke32@2800 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
Plagman 2012-07-02 04:51:24 +00:00
parent 4055e446c0
commit 5b887587f3

View file

@ -822,6 +822,7 @@ int32_t mdloadskin(md2model_t *m, int32_t number, int32_t pal, int32_t surf)
return *texidx; return *texidx;
// possibly fetch an already loaded texture // possibly fetch an already loaded texture
if (sk)
for (i=0; i<nextmodelid; i++) for (i=0; i<nextmodelid; i++)
for (skzero = ((md2model_t *)models[i])->skinmap; skzero; skzero = skzero->next) for (skzero = ((md2model_t *)models[i])->skinmap; skzero; skzero = skzero->next)
if (!Bstrcasecmp(skzero->fn, sk->fn) && skzero->texid[hicfxmask(pal)]) if (!Bstrcasecmp(skzero->fn, sk->fn) && skzero->texid[hicfxmask(pal)])