mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
arm64 : fix intptr_t size
This commit is contained in:
@@ -1259,7 +1259,7 @@ void CBaseEntity::ValidateEntityConnections()
|
||||
typedescription_t *dataDesc = &dmap->dataDesc[i];
|
||||
if ( ( dataDesc->fieldType == FIELD_CUSTOM ) && ( dataDesc->flags & FTYPEDESC_OUTPUT ) )
|
||||
{
|
||||
CBaseEntityOutput *pOutput = (CBaseEntityOutput *)((int)this + (int)dataDesc->fieldOffset[0]);
|
||||
CBaseEntityOutput *pOutput = (CBaseEntityOutput *)((intp)this + (intp)dataDesc->fieldOffset[0]);
|
||||
if ( pOutput->NumberOfElements() )
|
||||
return;
|
||||
}
|
||||
@@ -1292,7 +1292,7 @@ void CBaseEntity::FireNamedOutput( const char *pszOutput, variant_t variant, CBa
|
||||
typedescription_t *dataDesc = &dmap->dataDesc[i];
|
||||
if ( ( dataDesc->fieldType == FIELD_CUSTOM ) && ( dataDesc->flags & FTYPEDESC_OUTPUT ) )
|
||||
{
|
||||
CBaseEntityOutput *pOutput = ( CBaseEntityOutput * )( ( int )this + ( int )dataDesc->fieldOffset[0] );
|
||||
CBaseEntityOutput *pOutput = ( CBaseEntityOutput * )( ( intp )this + ( intp )dataDesc->fieldOffset[0] );
|
||||
if ( !Q_stricmp( dataDesc->externalName, pszOutput ) )
|
||||
{
|
||||
pOutput->FireOutput( variant, pActivator, pCaller, flDelay );
|
||||
@@ -3799,7 +3799,7 @@ void CBaseEntity::OnEntityEvent( EntityEvent_t event, void *pEventData )
|
||||
{
|
||||
case ENTITY_EVENT_WATER_TOUCH:
|
||||
{
|
||||
int nContents = (int)pEventData;
|
||||
intp nContents = (intp)pEventData;
|
||||
if ( !nContents || (nContents & CONTENTS_WATER) )
|
||||
{
|
||||
++m_nWaterTouch;
|
||||
@@ -3813,7 +3813,7 @@ void CBaseEntity::OnEntityEvent( EntityEvent_t event, void *pEventData )
|
||||
|
||||
case ENTITY_EVENT_WATER_UNTOUCH:
|
||||
{
|
||||
int nContents = (int)pEventData;
|
||||
intp nContents = (intp)pEventData;
|
||||
if ( !nContents || (nContents & CONTENTS_WATER) )
|
||||
{
|
||||
--m_nWaterTouch;
|
||||
|
||||
Reference in New Issue
Block a user