]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image.c
untested support for tenebrae override/ textures directory
[xonotic/darkplaces.git] / 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)