From: havoc Date: Thu, 31 Oct 2002 15:35:42 +0000 (+0000) Subject: untested support for tenebrae override/ textures directory X-Git-Tag: RELEASE_0_2_0_RC1~91 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b1654dde74aeed833d3e27edba17218e4de0abe9;p=xonotic%2Fdarkplaces.git untested support for tenebrae override/ textures directory git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2593 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/image.c b/image.c index 287d43e1..1cfc5e9b 100644 --- a/image.c +++ b/image.c @@ -537,6 +537,14 @@ qbyte *loadimagepixels (const char *filename, qboolean complain, int matchwidth, for (c = basename;*c;c++) if (*c == '*') *c = '#'; + sprintf (name, "override/%s.tga", basename); + f = COM_LoadFile(name, true); + if (f) + { + data = LoadTGA (f, matchwidth, matchheight); + Mem_Free(f); + return data; + } sprintf (name, "textures/%s.tga", basename); f = COM_LoadFile(name, true); if (f)