Call AddAnimatingTextures only once rather than for every wad file.

This commit is contained in:
Bill Currie 2010-09-01 11:54:38 +09:00
parent fcd1897421
commit d90a630b04

View file

@ -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);