mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-11 14:42:05 +08:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user