]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
untested support for tenebrae override/ textures directory
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 31 Oct 2002 15:35:42 +0000 (15:35 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 31 Oct 2002 15:35:42 +0000 (15:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2593 d7cf8633-e32d-0410-b094-e92efae38249

image.c

diff --git a/image.c b/image.c
index 287d43e12d01a5eee35711029ea777379504cdfb..1cfc5e9b664d59d81f93cc379157bf2e41bab938 100644 (file)
--- 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)