More build fix attempts
This commit is contained in:
parent
3e36382b58
commit
0c9160ec8b
@ -747,7 +747,7 @@ CEntInfo *CHalfLife2::LookupEntity(int entIndex)
|
||||
tempInfo.m_pNext = NULL;
|
||||
tempInfo.m_pPrev = NULL;
|
||||
|
||||
edict_t *pEdict = engine->PEntityOfEntIndex(entIndex);
|
||||
edict_t *pEdict = PEntityOfEntIndex(entIndex);
|
||||
|
||||
if (!pEdict)
|
||||
{
|
||||
@ -795,7 +795,7 @@ cell_t CHalfLife2::IndexToReference(int entIndex)
|
||||
|
||||
int CHalfLife2::ReferenceToIndex(cell_t entRef)
|
||||
{
|
||||
if (entRef == INVALID_EHANDLE_INDEX)
|
||||
if ((unsigned)entRef == INVALID_EHANDLE_INDEX)
|
||||
{
|
||||
return INVALID_EHANDLE_INDEX;
|
||||
}
|
||||
@ -841,7 +841,7 @@ cell_t CHalfLife2::EntityToBCompatRef(CBaseEntity *pEntity)
|
||||
|
||||
cell_t CHalfLife2::ReferenceToBCompatRef(cell_t entRef)
|
||||
{
|
||||
if (entRef == INVALID_EHANDLE_INDEX)
|
||||
if ((unsigned)entRef == INVALID_EHANDLE_INDEX)
|
||||
{
|
||||
return INVALID_EHANDLE_INDEX;
|
||||
}
|
||||
@ -860,4 +860,4 @@ cell_t CHalfLife2::ReferenceToBCompatRef(cell_t entRef)
|
||||
void *CHalfLife2::GetGlobalEntityList()
|
||||
{
|
||||
return g_EntList;
|
||||
}
|
||||
}
|
||||
|
@ -595,7 +595,7 @@ static cell_t SetEntDataEnt(IPluginContext *pContext, const cell_t *params)
|
||||
|
||||
CBaseHandle &hndl = *(CBaseHandle *)((uint8_t *)pEntity + offset);
|
||||
|
||||
if (params[3] == 0 || params[3] == INVALID_EHANDLE_INDEX)
|
||||
if (params[3] == 0 || (unsigned)params[3] == INVALID_EHANDLE_INDEX)
|
||||
{
|
||||
hndl.Set(NULL);
|
||||
} else {
|
||||
@ -637,7 +637,7 @@ static cell_t SetEntDataEnt2(IPluginContext *pContext, const cell_t *params)
|
||||
|
||||
CBaseHandle &hndl = *(CBaseHandle *)((uint8_t *)pEntity + offset);
|
||||
|
||||
if (params[3] == INVALID_EHANDLE_INDEX)
|
||||
if ((unsigned)params[3] == INVALID_EHANDLE_INDEX)
|
||||
{
|
||||
hndl.Set(NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user