From: havoc Date: Sun, 26 Mar 2006 02:26:44 +0000 (+0000) Subject: fixed bug that was preventing some deluxemapped q3bsp files from being identified... X-Git-Tag: xonotic-v0.1.0preview~4136 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6b64dfcf87f5f168f3a7557e9c81199bde4423b0;p=xonotic%2Fdarkplaces.git fixed bug that was preventing some deluxemapped q3bsp files from being identified as deluxemapped git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6190 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index a4092e71..fc53c7e6 100644 --- a/model_brush.c +++ b/model_brush.c @@ -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++) {