This commit is contained in:
Andrew Betson 2025-04-02 21:41:29 -04:00 committed by GitHub
commit 37a8b6c75a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 13 deletions

View file

@ -705,11 +705,11 @@ void CTFFlameManager::OnCollide( CBaseEntity *pEnt, int iPointIndex )
// Does he have the bow?
CTFWeaponBase *pWpn = pPlayer->GetActiveTFWeapon();
if ( pWpn && pWpn->GetWeaponID() == TF_WEAPON_COMPOUND_BOW )
{
CTFCompoundBow *pBow = static_cast<CTFCompoundBow*>( pWpn );
pBow->SetArrowAlight( true );
}
if ( !pWpn || pWpn->GetWeaponID() != TF_WEAPON_COMPOUND_BOW )
return;
CTFCompoundBow *pBow = static_cast<CTFCompoundBow*>( pWpn );
pBow->SetArrowAlight( true );
}
else
{

View file

@ -3128,19 +3128,19 @@ void CTFFlameEntity::OnCollideWithTeammate( CTFPlayer *pPlayer )
if ( !pPlayer->IsPlayerClass(TF_CLASS_SNIPER) )
return;
// Does he have the bow?
CTFWeaponBase *pWpn = pPlayer->GetActiveTFWeapon();
if ( !pWpn || pWpn->GetWeaponID() != TF_WEAPON_COMPOUND_BOW )
return;
CTFCompoundBow *pBow = static_cast<CTFCompoundBow*>( pWpn );
pBow->SetArrowAlight( true );
int iIndex = m_hEntitiesBurnt.Find( pPlayer );
if ( iIndex != m_hEntitiesBurnt.InvalidIndex() )
return;
m_hEntitiesBurnt.AddToTail( pPlayer );
// Does he have the bow?
CTFWeaponBase *pWpn = pPlayer->GetActiveTFWeapon();
if ( pWpn && pWpn->GetWeaponID() == TF_WEAPON_COMPOUND_BOW )
{
CTFCompoundBow *pBow = static_cast<CTFCompoundBow*>( pWpn );
pBow->SetArrowAlight( true );
}
}
//-----------------------------------------------------------------------------