From d90a630b0478cfd8db394fc9c723618b604e0925 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 1 Sep 2010 11:54:38 +0900 Subject: [PATCH] Call AddAnimatingTextures only once rather than for every wad file. --- tools/qfbsp/source/writebsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/qfbsp/source/writebsp.c b/tools/qfbsp/source/writebsp.c index beee386bb..942fb98b1 100644 --- a/tools/qfbsp/source/writebsp.c +++ b/tools/qfbsp/source/writebsp.c @@ -436,8 +436,6 @@ WriteMiptex (void) if (res == -1) Sys_Error ("couldn't open %s[.gz]", wad); - AddAnimatingTextures (); - wad = w; if (!wad || !*wad) break; @@ -448,6 +446,8 @@ WriteMiptex (void) free (wad_list); dstring_delete (fullpath); + AddAnimatingTextures (); + data = dstring_new (); data->size = sizeof (dmiptexlump_t); dstring_adjust (data);