From: tomaz Date: Tue, 7 Sep 2004 17:00:44 +0000 (+0000) Subject: Made hl map loading halve the lightmap samples, to fit hl's 0-1 range into quake... X-Git-Tag: xonotic-v0.1.0preview~5639 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1c89c0d9d509b90c1230b0889e87b6471cd5a607;p=xonotic%2Fdarkplaces.git Made hl map loading halve the lightmap samples, to fit hl's 0-1 range into quake's 0-2 range. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4442 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index 918b8d99..2857bc88 100644 --- a/model_brush.c +++ b/model_brush.c @@ -1202,7 +1202,8 @@ static void Mod_Q1BSP_LoadLighting(lump_t *l) if (loadmodel->brush.ishlbsp) // LordHavoc: load the colored lighting data straight { loadmodel->brushq1.lightdata = Mem_Alloc(loadmodel->mempool, l->filelen); - memcpy(loadmodel->brushq1.lightdata, mod_base + l->fileofs, l->filelen); + for (i=0; ifilelen; i++) + loadmodel->brushq1.lightdata[i] = mod_base[l->fileofs+i] >>= 1; } else // LordHavoc: bsp version 29 (normal white lighting) {