]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
really fixed deluxemapping this time
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 22 Feb 2007 11:25:51 +0000 (11:25 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 22 Feb 2007 11:25:51 +0000 (11:25 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6893 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 0e7e0485199ed1f417e6c10c00933fa2613bfaac..22d60f4e7e7328f5cb68c1190b01a71319bc6354 100644 (file)
@@ -4790,6 +4790,8 @@ static void Mod_Q3BSP_LoadLightmaps(lump_t *l, lump_t *faceslump)
        // reason when only one lightmap is used, which can throw off the
        // deluxemapping detection method, so check 2-lightmap bsp's specifically
        // to see if the second lightmap is blank, if so it is not deluxemapped.
+       loadmodel->brushq3.deluxemapping = !(count & 1);
+       loadmodel->brushq3.deluxemapping_modelspace = true;
        endlightmap = 0;
        if (loadmodel->brushq3.deluxemapping)
        {