From 72abdd25a3a813b38a7d11899073d35236d195fc Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 3 Dec 2004 09:43:35 +0000 Subject: [PATCH] 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 --- engine/gl/gl_model.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/gl/gl_model.c b/engine/gl/gl_model.c index dd04db736..4d274e20f 100644 --- a/engine/gl/gl_model.c +++ b/engine/gl/gl_model.c @@ -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