mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-24 05:34:18 +00:00
Don't require alive target for env_blowercannon
This commit is contained in:
parent
c0aeed9a3f
commit
810719f61f
@ -287,7 +287,7 @@ void CBlowerCannon::BlowerCannonThink( void )
|
|||||||
{
|
{
|
||||||
CBaseEntity *pTarget = GetNextTarget();
|
CBaseEntity *pTarget = GetNextTarget();
|
||||||
|
|
||||||
if( pTarget && pTarget->IsAlive() )
|
if( pTarget )
|
||||||
{
|
{
|
||||||
Vector direction = pTarget->pev->origin - pev->origin;
|
Vector direction = pTarget->pev->origin - pev->origin;
|
||||||
direction.z = m_iZOffSet + pTarget->pev->origin.z - pev->origin.z;
|
direction.z = m_iZOffSet + pTarget->pev->origin.z - pev->origin.z;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user