mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
fpersmissive fixes
This commit is contained in:
@@ -2845,7 +2845,7 @@ AI_FollowGroup_t *CAI_FollowManager::FindFollowerGroup( CBaseEntity *pFollower )
|
||||
{
|
||||
for ( int i = 0; i < m_groups.Count(); i++ )
|
||||
{
|
||||
int h = m_groups[i]->followers.Head();
|
||||
intp h = m_groups[i]->followers.Head();
|
||||
while( h != m_groups[i]->followers.InvalidIndex() )
|
||||
{
|
||||
AI_Follower_t *p = &m_groups[i]->followers[h];
|
||||
|
||||
@@ -729,7 +729,7 @@ CAI_Hint *CAI_HintManager::GetFirstHint( AIHintIter_t *pIter )
|
||||
{
|
||||
if ( !gm_AllHints.Count() )
|
||||
{
|
||||
*pIter = (AIHintIter_t)gm_AllHints.InvalidIndex();
|
||||
*pIter = (AIHintIter_t)(intp)gm_AllHints.InvalidIndex();
|
||||
return NULL;
|
||||
}
|
||||
*pIter = (AIHintIter_t)0;
|
||||
@@ -743,10 +743,10 @@ CAI_Hint *CAI_HintManager::GetNextHint( AIHintIter_t *pIter )
|
||||
{
|
||||
if ( (intp)*pIter != gm_AllHints.InvalidIndex() )
|
||||
{
|
||||
int i = ( (intp)*pIter ) + 1;
|
||||
intp i = ( (intp)*pIter ) + 1;
|
||||
if ( gm_AllHints.Count() <= i )
|
||||
{
|
||||
*pIter = (AIHintIter_t)gm_AllHints.InvalidIndex();
|
||||
*pIter = (AIHintIter_t)(intp)gm_AllHints.InvalidIndex();
|
||||
return NULL;
|
||||
}
|
||||
*pIter = (AIHintIter_t)i;
|
||||
|
||||
@@ -176,7 +176,7 @@ CAI_Enemies::~CAI_Enemies()
|
||||
AI_EnemyInfo_t *CAI_Enemies::GetFirst( AIEnemiesIter_t *pIter )
|
||||
{
|
||||
CMemMap::IndexType_t i = m_Map.FirstInorder();
|
||||
*pIter = (AIEnemiesIter_t)(unsigned)i;
|
||||
*pIter = (AIEnemiesIter_t)(uintp)i;
|
||||
|
||||
if ( i == m_Map.InvalidIndex() )
|
||||
return NULL;
|
||||
@@ -197,7 +197,7 @@ AI_EnemyInfo_t *CAI_Enemies::GetNext( AIEnemiesIter_t *pIter )
|
||||
return NULL;
|
||||
|
||||
i = m_Map.NextInorder( i );
|
||||
*pIter = (AIEnemiesIter_t)(unsigned)i;
|
||||
*pIter = (AIEnemiesIter_t)(uintp)i;
|
||||
if ( i == m_Map.InvalidIndex() )
|
||||
return NULL;
|
||||
|
||||
|
||||
@@ -1224,7 +1224,7 @@ AI_PathNode_t CAI_Navigator::GetNearestNode()
|
||||
#ifdef WIN32
|
||||
COMPILE_TIME_ASSERT( (int)AIN_NO_NODE == NO_NODE );
|
||||
#endif
|
||||
return (AI_PathNode_t)( GetPathfinder()->NearestNodeToNPC() );
|
||||
return (AI_PathNode_t)(intp)( GetPathfinder()->NearestNodeToNPC() );
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
@@ -573,7 +573,7 @@ CSound* CAI_Senses::GetFirstHeardSound( AISoundIter_t *pIter )
|
||||
return NULL;
|
||||
}
|
||||
|
||||
*pIter = (AISoundIter_t)iFirst;
|
||||
*pIter = (AISoundIter_t)(intp)iFirst;
|
||||
return CSoundEnt::SoundPointerForIndex( iFirst );
|
||||
}
|
||||
|
||||
@@ -584,7 +584,7 @@ CSound* CAI_Senses::GetNextHeardSound( AISoundIter_t *pIter )
|
||||
if ( !*pIter )
|
||||
return NULL;
|
||||
|
||||
int iCurrent = (intp)*pIter;
|
||||
intp iCurrent = (intp)*pIter;
|
||||
|
||||
Assert( iCurrent != SOUNDLIST_EMPTY );
|
||||
if ( iCurrent == SOUNDLIST_EMPTY )
|
||||
|
||||
@@ -420,7 +420,7 @@ CAI_BaseNPC *CAI_Squad::GetLeader( void )
|
||||
//-----------------------------------------------------------------------------
|
||||
CAI_BaseNPC *CAI_Squad::GetFirstMember( AISquadIter_t *pIter, bool bIgnoreSilentMembers )
|
||||
{
|
||||
int i = 0;
|
||||
intp i = 0;
|
||||
if ( bIgnoreSilentMembers )
|
||||
{
|
||||
for ( ; i < m_SquadMembers.Count(); i++ )
|
||||
|
||||
@@ -49,7 +49,7 @@ const char *TaskFailureToString( AI_TaskFailureCode_t code )
|
||||
{
|
||||
const char *pszResult;
|
||||
if ( code < 0 || code >= NUM_FAIL_CODES )
|
||||
pszResult = (const char *)code;
|
||||
pszResult = (const char *)(intp)code;
|
||||
else
|
||||
pszResult = g_ppszTaskFailureText[code];
|
||||
return pszResult;
|
||||
|
||||
@@ -2612,7 +2612,7 @@ void CNPC_MetroPolice::IdleSound( void )
|
||||
|
||||
if ( m_Sentences.Speak( pQuestion[bIsCriminal][nQuestionType] ) >= 0 )
|
||||
{
|
||||
GetSquad()->BroadcastInteraction( g_interactionMetrocopIdleChatter, (void*)(METROPOLICE_CHATTER_RESPONSE + nQuestionType), this );
|
||||
GetSquad()->BroadcastInteraction( g_interactionMetrocopIdleChatter, (void*)(intp)(METROPOLICE_CHATTER_RESPONSE + nQuestionType), this );
|
||||
m_nIdleChatterType = METROPOLICE_CHATTER_WAIT_FOR_RESPONSE;
|
||||
}
|
||||
}
|
||||
@@ -2983,7 +2983,7 @@ bool CNPC_MetroPolice::HandleInteraction(int interactionType, void *data, CBaseC
|
||||
|
||||
if ( interactionType == g_interactionMetrocopIdleChatter )
|
||||
{
|
||||
m_nIdleChatterType = (int)data;
|
||||
m_nIdleChatterType = (intp)data;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1068,7 +1068,7 @@ void CCollisionEvent::FluidStartTouch( IPhysicsObject *pObject, IPhysicsFluidCon
|
||||
return;
|
||||
|
||||
pEntity->AddEFlags( EFL_TOUCHING_FLUID );
|
||||
pEntity->OnEntityEvent( ENTITY_EVENT_WATER_TOUCH, (void*)pFluid->GetContents() );
|
||||
pEntity->OnEntityEvent( ENTITY_EVENT_WATER_TOUCH, (void*)(intp)pFluid->GetContents() );
|
||||
|
||||
float timeSinceLastCollision = DeltaTimeSinceLastFluid( pEntity );
|
||||
if ( timeSinceLastCollision < 0.5f )
|
||||
@@ -1124,7 +1124,7 @@ void CCollisionEvent::FluidEndTouch( IPhysicsObject *pObject, IPhysicsFluidContr
|
||||
}
|
||||
|
||||
pEntity->RemoveEFlags( EFL_TOUCHING_FLUID );
|
||||
pEntity->OnEntityEvent( ENTITY_EVENT_WATER_UNTOUCH, (void*)pFluid->GetContents() );
|
||||
pEntity->OnEntityEvent( ENTITY_EVENT_WATER_UNTOUCH, (void*)(intp)pFluid->GetContents() );
|
||||
}
|
||||
|
||||
class CSkipKeys : public IVPhysicsKeyHandler
|
||||
|
||||
Reference in New Issue
Block a user