mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
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:
parent
f52ebd3f00
commit
1fb8ab1487
1 changed files with 7 additions and 0 deletions
|
@ -944,7 +944,14 @@ TRACE(("dbg: GLMod_LoadTextures: inittexturedescs\n"));
|
||||||
{
|
{
|
||||||
m->dataofs[i] = LittleLong(m->dataofs[i]);
|
m->dataofs[i] = LittleLong(m->dataofs[i]);
|
||||||
if (m->dataofs[i] == -1) //e1m2, this happens
|
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;
|
continue;
|
||||||
|
}
|
||||||
mt = (miptex_t *)((qbyte *)m + m->dataofs[i]);
|
mt = (miptex_t *)((qbyte *)m + m->dataofs[i]);
|
||||||
|
|
||||||
TRACE(("dbg: GLMod_LoadTextures: texture %s\n", loadname));
|
TRACE(("dbg: GLMod_LoadTextures: texture %s\n", loadname));
|
||||||
|
|
Loading…
Reference in a new issue