Tomaz fixed black models in unlit maps
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 May 2004 20:48:56 +0000 (20:48 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 May 2004 20:48:56 +0000 (20:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4191 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index fa74b70..60186d5 100644 (file)
@@ -2933,6 +2933,9 @@ void Mod_Q1BSP_Load(model_t *mod, void *buffer)
        Mod_Q1BSP_LoadNodes(&header->lumps[LUMP_NODES]);
        Mod_Q1BSP_LoadClipnodes(&header->lumps[LUMP_CLIPNODES]);
 
+       if (!mod->brushq1.lightdata)
+               mod->brush.LightPoint = NULL;
+
        if (mod->brushq1.data_compressedpvs)
                Mem_Free(mod->brushq1.data_compressedpvs);
        mod->brushq1.data_compressedpvs = NULL;