mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-10 03:51:28 +00:00
Merge 6b3f70951e
into ceb6d4d783
This commit is contained in:
commit
3b64185b1c
1 changed files with 6 additions and 3 deletions
|
@ -1791,11 +1791,14 @@ void CWeaponRPG::CreateLaserPointer( void )
|
|||
return;
|
||||
|
||||
CBaseCombatCharacter *pOwner = GetOwner();
|
||||
|
||||
if ( pOwner == NULL )
|
||||
if ( !pOwner )
|
||||
return;
|
||||
|
||||
if ( pOwner->GetAmmoCount(m_iPrimaryAmmoType) <= 0 )
|
||||
// Third rocket guidance fix
|
||||
CMissile *pMissile = dynamic_cast< CMissile * >( m_hMissile.Get() );
|
||||
|
||||
// Let me still be guided if I am the owner's child
|
||||
if ( !pMissile && pOwner->GetAmmoCount( m_iPrimaryAmmoType ) <= 0 )
|
||||
return;
|
||||
|
||||
m_hLaserDot = CLaserDot::Create( GetAbsOrigin(), GetOwner() );
|
||||
|
|
Loading…
Reference in a new issue