1
0
Fork 0
forked from fte/fteqw

hack to fix unnamed textures in bsps.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@549 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-12-03 09:43:35 +00:00
parent 98b6061185
commit 72abdd25a3

View file

@ -933,6 +933,12 @@ TRACE(("dbg: GLMod_LoadTextures: inittexturedescs\n"));
TRACE(("dbg: GLMod_LoadTextures: texture %s\n", loadname));
if (!*mt->name) //I HATE MAPPERS!
{
sprintf(mt->name, "unnamed%i", i);
Con_Printf("warning: unnamed texture in %s, renaming to %s\n", loadmodel->name, tx->name);
}
mt->width = LittleLong (mt->width);
mt->height = LittleLong (mt->height);
for (j=0 ; j<MIPLEVELS ; j++)