Fix missing const-qualifiers in engine code. Fix qboolean/int mixing in interface implementations(int is preferred). Replace long by int in COM_RandomLong.

This commit is contained in:
Alibek Omarov
2018-04-23 23:07:54 +03:00
parent e1f80fba3d
commit efe8ddf151
44 changed files with 143 additions and 138 deletions
+3 -3
View File
@@ -63,7 +63,7 @@ void COM_ClearCustomizationList( customization_t *pHead, qboolean bCleanDecals )
qboolean COM_CreateCustomization( customization_t *pListHead, resource_t *pResource, int playernumber, int flags, customization_t **pOut, int *nLumps )
{
qboolean bError = false;
int checksize = 0;
long checksize = 0;
customization_t *pCust;
if( pOut ) *pOut = NULL;
@@ -85,7 +85,7 @@ qboolean COM_CreateCustomization( customization_t *pListHead, resource_t *pResou
{
pCust->pBuffer = FS_LoadFile( pResource->szFileName, &checksize, true );
if( checksize != pCust->resource.nDownloadSize )
if( (int)checksize != pCust->resource.nDownloadSize )
bError = true;
}
@@ -149,4 +149,4 @@ int COM_SizeofResourceList( resource_t *pList, resourceinfo_t *ri )
}
return nSize;
}
}