]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.c
reduced number of image extensions checked by doing more intelligent path examination...
[xonotic/darkplaces.git] / model_brush.c
index 000746415b88427715d347c46d0a41180fe21ec1..3faac50084bf4a26375e9598b2b7d89ed4e5d5d1 100644 (file)
@@ -1278,7 +1278,7 @@ static void Mod_Q1BSP_LoadTextures(lump_t *l)
                        }
                        else
                        {
-                               if (!Mod_LoadSkinFrame(&tx->skin, tx->name, TEXF_MIPMAP | TEXF_ALPHA | TEXF_PRECACHE | TEXF_PICMIP, false, true))
+                               if (!Mod_LoadSkinFrame(&tx->skin, gamemode == GAME_TENEBRAE ? tx->name : va("textures/%s", tx->name), TEXF_MIPMAP | TEXF_ALPHA | TEXF_PRECACHE | TEXF_PICMIP, false, true))
                                {
                                        // did not find external texture, load it from the bsp or wad3
                                        if (loadmodel->brush.ishlbsp)