Browse Source

engine: common: mod_bmodel: Fixed Con_Printf warnings

Some formatting characters did not match up with their
values.
pull/2/head
Jonathan Poncelet 1 year ago committed by Alibek Omarov
parent
commit
6c9ce478a9
  1. 12
      engine/common/mod_bmodel.c

12
engine/common/mod_bmodel.c

@ -457,7 +457,7 @@ static void Mod_LoadLump( const byte *in, mlumpinfo_t *info, mlumpstat_t *stat, @@ -457,7 +457,7 @@ static void Mod_LoadLump( const byte *in, mlumpinfo_t *info, mlumpstat_t *stat,
if( l->filelen % real_entrysize )
{
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++;
return;
}
@ -1525,7 +1525,7 @@ static qboolean Mod_LoadColoredLighting( dbspmodel_t *bmod ) @@ -1525,7 +1525,7 @@ static qboolean Mod_LoadColoredLighting( dbspmodel_t *bmod )
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 );
return false;
}
@ -1580,7 +1580,7 @@ static void Mod_LoadDeluxemap( dbspmodel_t *bmod ) @@ -1580,7 +1580,7 @@ static void Mod_LoadDeluxemap( dbspmodel_t *bmod )
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 );
return;
}
@ -2475,7 +2475,7 @@ static void Mod_LoadSurfaces( dbspmodel_t *bmod ) @@ -2475,7 +2475,7 @@ static void Mod_LoadSurfaces( dbspmodel_t *bmod )
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;
}
@ -2810,7 +2810,7 @@ static void Mod_LoadLightVecs( dbspmodel_t *bmod ) @@ -2810,7 +2810,7 @@ static void Mod_LoadLightVecs( dbspmodel_t *bmod )
if( bmod->deluxdatasize != bmod->lightdatasize )
{
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
return;
}
@ -2829,7 +2829,7 @@ static void Mod_LoadShadowmap( dbspmodel_t *bmod ) @@ -2829,7 +2829,7 @@ static void Mod_LoadShadowmap( dbspmodel_t *bmod )
if( bmod->shadowdatasize != ( bmod->lightdatasize / 3 ))
{
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;
}

Loading…
Cancel
Save