]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed bug that was preventing some deluxemapped q3bsp files from being identified...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 26 Mar 2006 02:26:44 +0000 (02:26 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 26 Mar 2006 02:26:44 +0000 (02:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6190 d7cf8633-e32d-0410-b094-e92efae38249

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++)
                {