From 457882d8ab1fa2a9c8964d1cf3e3efbefac085ae Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 22 Feb 2007 11:25:51 +0000 Subject: [PATCH] really fixed deluxemapping this time git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6893 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/model_brush.c b/model_brush.c index 0e7e0485..22d60f4e 100644 --- a/model_brush.c +++ b/model_brush.c @@ -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) { -- 2.39.2