]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix typo
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Nov 2011 11:59:43 +0000 (11:59 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 25 Nov 2011 13:11:46 +0000 (14:11 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11569 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=c045b78caa00d7489cd84bbfdd0d5fe857fbba95

model_brush.c

index 6fceeb8776a766133a8809c83981b0276b8df44b..c3ab5ade14821d814242f5f320da9fddc791abb6 100644 (file)
@@ -7300,7 +7300,7 @@ static void Mod_Q3BSP_Load(dp_model_t *mod, void *buffer, void *bufferend)
                // neutral point is at Image_sRGBFloatFromLinearFloat(0.5)
                // so we need to map Image_sRGBFloatFromLinearFloat(0.5) to 0.5
                // factor is 0.5 / Image_sRGBFloatFromLinearFloat(0.5)
-               mod->lightmapscale *= 0.679942f; // fixes neutral level
+               loadmodel->lightmapscale *= 0.679942f; // fixes neutral level
        }
 
        Con_DPrintf("Stats for q3bsp model \"%s\": %i faces, %i nodes, %i leafs, %i clusters, %i clusterportals, mesh: %i vertices, %i triangles, %i surfaces\n", loadmodel->name, loadmodel->num_surfaces, loadmodel->brush.num_nodes, loadmodel->brush.num_leafs, mod->brush.num_pvsclusters, loadmodel->brush.num_portals, loadmodel->surfmesh.num_vertices, loadmodel->surfmesh.num_triangles, loadmodel->num_surfaces);