]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.c
set the isaabb/hasaabbplanes fields on box brushes
[xonotic/darkplaces.git] / model_shared.c
index 62ad436bbe5c07b72d8f77bbc2e2cf56d7a46170..13af108b2b30129a1051c9e7092ef407f4c0b572 100644 (file)
@@ -102,6 +102,10 @@ static void mod_newmap(void)
                                for (k = 0;k < mod->data_textures[j].backgroundnumskinframes;k++)
                                        R_SkinFrame_MarkUsed(mod->data_textures[j].backgroundskinframes[k]);
                        }
+                       if (mod->brush.solidskyskinframe)
+                               R_SkinFrame_MarkUsed(mod->brush.solidskyskinframe);
+                       if (mod->brush.alphaskyskinframe)
+                               R_SkinFrame_MarkUsed(mod->brush.alphaskyskinframe);
                }
        }
 
@@ -2262,7 +2266,7 @@ tag_weapon,
 tag_torso,
 */
        memset(word, 0, sizeof(word));
-       for (i = 0;i < MAX_SKINS && (data = text = (char *)FS_LoadFile(va("%s_%i.skin", loadmodel->name, i), tempmempool, true, NULL));i++)
+       for (i = 0;i < 256 && (data = text = (char *)FS_LoadFile(va("%s_%i.skin", loadmodel->name, i), tempmempool, true, NULL));i++)
        {
                // If it's the first file we parse
                if (skinfile == NULL)