]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix error message about wrong light grid dimensions
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 19 Apr 2009 10:16:25 +0000 (10:16 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 19 Apr 2009 10:16:25 +0000 (10:16 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8933 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c
model_shared.h

index f652f221c134840744ce84dfddec467984e8ef46..996bcda2f7e218becbc151f299e8947d368475e0 100644 (file)
@@ -5311,7 +5311,7 @@ static void Mod_Q3BSP_LoadLightGrid(lump_t *l)
        if (l->filelen)
        {
                if (l->filelen < count * (int)sizeof(*in))
-                       Host_Error("Mod_Q3BSP_LoadLightGrid: invalid lightgrid lump size %i bytes, should be %i bytes (%ix%ix%i)", l->filelen, (int)(count * sizeof(*in)), loadmodel->brushq3.num_lightgrid_dimensions[0], loadmodel->brushq3.num_lightgrid_dimensions[1], loadmodel->brushq3.num_lightgrid_dimensions[2]);
+                       Host_Error("Mod_Q3BSP_LoadLightGrid: invalid lightgrid lump size %i bytes, should be %i bytes (%ix%ix%i)", l->filelen, (int)(count * sizeof(*in)), loadmodel->brushq3.num_lightgrid_isize[0], loadmodel->brushq3.num_lightgrid_isize[1], loadmodel->brushq3.num_lightgrid_isize[2]);
                if (l->filelen != count * (int)sizeof(*in))
                        Con_Printf("Mod_Q3BSP_LoadLightGrid: Warning: calculated lightgrid size %i bytes does not match lump size %i\n", (int)(count * sizeof(*in)), l->filelen);
                out = (q3dlightgrid_t *)Mem_Alloc(loadmodel->mempool, count * sizeof(*out));
index 6935b86270a9691d19762d86a83b5108f6156e31..cdcc846e70496bb7c3e9817c714996dbe5472ff4 100644 (file)
@@ -770,8 +770,6 @@ typedef struct model_brushq3_s
        int num_lightgrid_imins[3];
        int num_lightgrid_imaxs[3];
        int num_lightgrid_isize[3];
-       // indexing/clamping
-       int num_lightgrid_dimensions[3];
        // transform modelspace coordinates to lightgrid index
        matrix4x4_t num_lightgrid_indexfromworld;