From b1654dde74aeed833d3e27edba17218e4de0abe9 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 31 Oct 2002 15:35:42 +0000 Subject: [PATCH] untested support for tenebrae override/ textures directory git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2593 d7cf8633-e32d-0410-b094-e92efae38249 --- image.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- 2.39.2