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:
parent
98b6061185
commit
72abdd25a3
1 changed files with 6 additions and 0 deletions
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue