mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-09 05:24:17 +00:00
Fix wrong check.
This commit is contained in:
parent
d20c4ff329
commit
c28d86f748
@ -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).
|
// (that is, no actual entity projectile was involved in the attack so use the shooter's origin).
|
||||||
if( pevAttacker == pevInflictor )
|
if( pevAttacker == pevInflictor )
|
||||||
{
|
{
|
||||||
vecTemp = pevInflictor->origin - VecBModelOrigin( pev );
|
vecTemp = pevAttacker->origin - VecBModelOrigin( pev );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
// an actual missile was involved.
|
// an actual missile was involved.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user