More build fix attempts

This commit is contained in:
Matt Woodrow 2009-07-24 12:54:08 +12:00
parent 3e36382b58
commit 0c9160ec8b
2 changed files with 6 additions and 6 deletions

View File

@ -747,7 +747,7 @@ CEntInfo *CHalfLife2::LookupEntity(int entIndex)
tempInfo.m_pNext = NULL; tempInfo.m_pNext = NULL;
tempInfo.m_pPrev = NULL; tempInfo.m_pPrev = NULL;
edict_t *pEdict = engine->PEntityOfEntIndex(entIndex); edict_t *pEdict = PEntityOfEntIndex(entIndex);
if (!pEdict) if (!pEdict)
{ {
@ -795,7 +795,7 @@ cell_t CHalfLife2::IndexToReference(int entIndex)
int CHalfLife2::ReferenceToIndex(cell_t entRef) int CHalfLife2::ReferenceToIndex(cell_t entRef)
{ {
if (entRef == INVALID_EHANDLE_INDEX) if ((unsigned)entRef == INVALID_EHANDLE_INDEX)
{ {
return INVALID_EHANDLE_INDEX; return INVALID_EHANDLE_INDEX;
} }
@ -841,7 +841,7 @@ cell_t CHalfLife2::EntityToBCompatRef(CBaseEntity *pEntity)
cell_t CHalfLife2::ReferenceToBCompatRef(cell_t entRef) cell_t CHalfLife2::ReferenceToBCompatRef(cell_t entRef)
{ {
if (entRef == INVALID_EHANDLE_INDEX) if ((unsigned)entRef == INVALID_EHANDLE_INDEX)
{ {
return INVALID_EHANDLE_INDEX; return INVALID_EHANDLE_INDEX;
} }
@ -860,4 +860,4 @@ cell_t CHalfLife2::ReferenceToBCompatRef(cell_t entRef)
void *CHalfLife2::GetGlobalEntityList() void *CHalfLife2::GetGlobalEntityList()
{ {
return g_EntList; return g_EntList;
} }

View File

@ -595,7 +595,7 @@ static cell_t SetEntDataEnt(IPluginContext *pContext, const cell_t *params)
CBaseHandle &hndl = *(CBaseHandle *)((uint8_t *)pEntity + offset); 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); hndl.Set(NULL);
} else { } else {
@ -637,7 +637,7 @@ static cell_t SetEntDataEnt2(IPluginContext *pContext, const cell_t *params)
CBaseHandle &hndl = *(CBaseHandle *)((uint8_t *)pEntity + offset); CBaseHandle &hndl = *(CBaseHandle *)((uint8_t *)pEntity + offset);
if (params[3] == INVALID_EHANDLE_INDEX) if ((unsigned)params[3] == INVALID_EHANDLE_INDEX)
{ {
hndl.Set(NULL); hndl.Set(NULL);
} }