]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.c
fixed bug that was preventing some deluxemapped q3bsp files from being identified...
[xonotic/darkplaces.git] / model_brush.c
index a4092e71acbf7cfc0a8891559ffa7c69ae2f1ccb..fc53c7e662f858a942624bdd29891ab5a166aa87 100644 (file)
@@ -4459,7 +4459,7 @@ static void Mod_Q3BSP_LoadFaces(lump_t *l)
        // is also not a deluxemapped bsp if it has an odd number of lightmaps or
        // less than 2
        loadmodel->brushq3.deluxemapping = true;
-       if (count >= 2 && !(count & 1))
+       if (loadmodel->brushq3.num_lightmaps >= 2 && !(loadmodel->brushq3.num_lightmaps & 1))
        {
                for (i = 0;i < count;i++)
                {