Fix wrong check.

This commit is contained in:
Night Owl 2017-07-02 02:42:30 +05:00
parent d20c4ff329
commit c28d86f748

View File

@ -511,7 +511,7 @@ int CBaseEntity::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, fl
// (that is, no actual entity projectile was involved in the attack so use the shooter's origin).
if( pevAttacker == pevInflictor )
{
vecTemp = pevInflictor->origin - VecBModelOrigin( pev );
vecTemp = pevAttacker->origin - VecBModelOrigin( pev );
}
else
// an actual missile was involved.