|
|
@ -457,7 +457,7 @@ static void Mod_LoadLump( const byte *in, mlumpinfo_t *info, mlumpstat_t *stat, |
|
|
|
if( l->filelen % real_entrysize ) |
|
|
|
if( l->filelen % real_entrysize ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if( !FBitSet( flags, LUMP_SILENT )) |
|
|
|
if( !FBitSet( flags, LUMP_SILENT )) |
|
|
|
Con_DPrintf( S_ERROR "Mod_Load%s: Lump size %d was not a multiple of %lu bytes\n", msg2, l->filelen, real_entrysize ); |
|
|
|
Con_DPrintf( S_ERROR "Mod_Load%s: Lump size %d was not a multiple of %zu bytes\n", msg2, l->filelen, real_entrysize ); |
|
|
|
loadstat.numerrors++; |
|
|
|
loadstat.numerrors++; |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -1525,7 +1525,7 @@ static qboolean Mod_LoadColoredLighting( dbspmodel_t *bmod ) |
|
|
|
|
|
|
|
|
|
|
|
if( litdatasize != ( bmod->lightdatasize * 3 )) |
|
|
|
if( litdatasize != ( bmod->lightdatasize * 3 )) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Con_Printf( S_ERROR "%s has mismatched size (%li should be %lu)\n", path, litdatasize, bmod->lightdatasize * 3 ); |
|
|
|
Con_Printf( S_ERROR "%s has mismatched size (%llu should be %zu)\n", path, litdatasize, bmod->lightdatasize * 3 ); |
|
|
|
Mem_Free( in ); |
|
|
|
Mem_Free( in ); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
@ -1580,7 +1580,7 @@ static void Mod_LoadDeluxemap( dbspmodel_t *bmod ) |
|
|
|
|
|
|
|
|
|
|
|
if( deluxdatasize != bmod->lightdatasize ) |
|
|
|
if( deluxdatasize != bmod->lightdatasize ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Con_Reportf( S_ERROR "%s has mismatched size (%li should be %lu)\n", path, deluxdatasize, bmod->lightdatasize ); |
|
|
|
Con_Reportf( S_ERROR "%s has mismatched size (%llu should be %zu)\n", path, deluxdatasize, bmod->lightdatasize ); |
|
|
|
Mem_Free( in ); |
|
|
|
Mem_Free( in ); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -2475,7 +2475,7 @@ static void Mod_LoadSurfaces( dbspmodel_t *bmod ) |
|
|
|
|
|
|
|
|
|
|
|
if(( in->firstedge + in->numedges ) > loadmodel->numsurfedges ) |
|
|
|
if(( in->firstedge + in->numedges ) > loadmodel->numsurfedges ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Con_Reportf( S_ERROR "bad surface %i from %lu\n", i, bmod->numsurfaces ); |
|
|
|
Con_Reportf( S_ERROR "bad surface %i from %zu\n", i, bmod->numsurfaces ); |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2810,7 +2810,7 @@ static void Mod_LoadLightVecs( dbspmodel_t *bmod ) |
|
|
|
if( bmod->deluxdatasize != bmod->lightdatasize ) |
|
|
|
if( bmod->deluxdatasize != bmod->lightdatasize ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if( bmod->deluxdatasize > 0 ) |
|
|
|
if( bmod->deluxdatasize > 0 ) |
|
|
|
Con_Printf( S_ERROR "Mod_LoadLightVecs: has mismatched size (%lu should be %i)\n", bmod->deluxdatasize, bmod->lightdatasize ); |
|
|
|
Con_Printf( S_ERROR "Mod_LoadLightVecs: has mismatched size (%zu should be %zu)\n", bmod->deluxdatasize, bmod->lightdatasize ); |
|
|
|
else Mod_LoadDeluxemap( bmod ); // old method
|
|
|
|
else Mod_LoadDeluxemap( bmod ); // old method
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -2829,7 +2829,7 @@ static void Mod_LoadShadowmap( dbspmodel_t *bmod ) |
|
|
|
if( bmod->shadowdatasize != ( bmod->lightdatasize / 3 )) |
|
|
|
if( bmod->shadowdatasize != ( bmod->lightdatasize / 3 )) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if( bmod->shadowdatasize > 0 ) |
|
|
|
if( bmod->shadowdatasize > 0 ) |
|
|
|
Con_Printf( S_ERROR "Mod_LoadShadowmap: has mismatched size (%i should be %lu)\n", bmod->shadowdatasize, bmod->lightdatasize / 3 ); |
|
|
|
Con_Printf( S_ERROR "Mod_LoadShadowmap: has mismatched size (%zu should be %zu)\n", bmod->shadowdatasize, bmod->lightdatasize / 3 ); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|