@ -262,6 +262,7 @@ void CBaseMonster::Listen( void )
@@ -262,6 +262,7 @@ void CBaseMonster::Listen( void )
}
//iSound = g_pSoundEnt->m_SoundPool[iSound].m_iNext;
if ( pCurrentSound )
iSound = pCurrentSound - > m_iNext ;
}
}
@ -431,7 +432,9 @@ CSound *CBaseMonster::PBestSound( void )
@@ -431,7 +432,9 @@ CSound *CBaseMonster::PBestSound( void )
{
pSound = CSoundEnt : : SoundPointerForIndex ( iThisSound ) ;
if ( pSound & & pSound - > FIsSound ( ) )
if ( pSound )
{
if ( pSound - > FIsSound ( ) )
{
flDist = ( pSound - > m_vecOrigin - EarPosition ( ) ) . Length ( ) ;
@ -444,6 +447,7 @@ CSound *CBaseMonster::PBestSound( void )
@@ -444,6 +447,7 @@ CSound *CBaseMonster::PBestSound( void )
iThisSound = pSound - > m_iNextAudible ;
}
}
if ( iBestSound > = 0 )
{
pSound = CSoundEnt : : SoundPointerForIndex ( iBestSound ) ;
@ -2367,7 +2371,7 @@ BOOL CBaseMonster::BuildNearestRoute( Vector vecThreat, Vector vecViewOffset, fl
@@ -2367,7 +2371,7 @@ BOOL CBaseMonster::BuildNearestRoute( Vector vecThreat, Vector vecViewOffset, fl
// try to actually get there
if ( BuildRoute ( node . m_vecOrigin , bits_MF_TO_LOCATION , NULL ) )
{
flMaxDist = flDist ;
// flMaxDist = flDist;
m_vecMoveGoal = node . m_vecOrigin ;
return TRUE ; // UNDONE: keep looking for something closer!
}
@ -3278,7 +3282,7 @@ BOOL CBaseMonster::BBoxFlat( void )
@@ -3278,7 +3282,7 @@ BOOL CBaseMonster::BBoxFlat( void )
{
return FALSE ;
}
flLength = flLength2 ;
// flLength = flLength2;
return TRUE ;
}