1
0
Fork 0
forked from fte/fteqw

Trying to fix a bug with a map bigfoot gave me. Blame him! Not me!

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3377 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2009-10-06 00:15:55 +00:00
parent f52ebd3f00
commit 1fb8ab1487

View file

@ -944,7 +944,14 @@ TRACE(("dbg: GLMod_LoadTextures: inittexturedescs\n"));
{
m->dataofs[i] = LittleLong(m->dataofs[i]);
if (m->dataofs[i] == -1) //e1m2, this happens
{
tx = Hunk_AllocName (sizeof(texture_t), loadname );
memcpy(tx, r_notexture_mip, sizeof(texture_t));
tx->parttype = -1;
sprintf(tx->name, "unnamed%i", i);
loadmodel->textures[i] = tx;
continue;
}
mt = (miptex_t *)((qbyte *)m + m->dataofs[i]);
TRACE(("dbg: GLMod_LoadTextures: texture %s\n", loadname));