Updated formatting

This commit is contained in:
rabscootle
2026-01-16 09:59:56 -06:00
committed by EricS-Valve
parent 569a9b5ae2
commit 7a8f7ab691
+9 -9
View File
@@ -3175,21 +3175,21 @@ bool CStatTrakDigitProxy::HelperOnBindGetStatTrakScore( void *pC_BaseEntity, int
CTFWeaponBase* pWeap = NULL;
// Check if it's an attachment for world model
C_TFWeaponAttachmentModel* pAttachment = dynamic_cast<C_TFWeaponAttachmentModel*>(pEntity);
if (pAttachment)
C_TFWeaponAttachmentModel* pAttachment = dynamic_cast<C_TFWeaponAttachmentModel*>( pEntity );
if ( pAttachment )
{
// If we're dealing with a world model, Stat Clock will be it's child attachment
C_BaseEntity* pParent = pAttachment->GetMoveParent();
if (pParent)
if ( pParent )
{
pWeap = dynamic_cast<CTFWeaponBase*>(pParent);
pWeap = dynamic_cast<CTFWeaponBase*>( pParent );
}
}
if (pWeap)
if ( pWeap )
{
CEconItemView* pItem = pWeap->GetAttributeContainer()->GetItem();
if (pItem && pItem->FindAttribute(GetKillEaterAttr_Score(0), &unScore))
if ( pItem && pItem->FindAttribute( GetKillEaterAttr_Score( 0 ), &unScore ) )
{
*piScore = unScore;
bReturnValue = true;
@@ -3199,13 +3199,13 @@ bool CStatTrakDigitProxy::HelperOnBindGetStatTrakScore( void *pC_BaseEntity, int
{
// Are we dealing with a dropped weapon?
C_BaseEntity* pParent = pEntity->GetMoveParent();
CTFDroppedWeapon* pDroppedWeapon = dynamic_cast<CTFDroppedWeapon*>(pParent);
CTFDroppedWeapon* pDroppedWeapon = dynamic_cast<CTFDroppedWeapon*>( pParent );
if (pDroppedWeapon)
if ( pDroppedWeapon )
{
// We're able to extract item attributes from dropped weapons, including strange count
CEconItemView* pItem = pDroppedWeapon->GetItem();
if (pItem && pItem->FindAttribute(GetKillEaterAttr_Score(0), &unScore))
if ( pItem && pItem->FindAttribute( GetKillEaterAttr_Score( 0 ), &unScore ) )
{
*piScore = unScore;
bReturnValue = true;