Skip to content

Commit 88b3968

Browse files
committed
Revert "prevent infinite sandvich issue"
This reverts commit 1364d71.
1 parent e2c46d2 commit 88b3968

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/game/shared/tf/tf_weapon_lunchbox.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,11 @@ void CTFLunchBox::ApplyBiteEffects( CTFPlayer *pPlayer )
432432
iHeal = iHeal * flHealScale;
433433

434434
int iHealed = pPlayer->TakeHealth(iHeal, iHealType);
435-
CTF_GameStats.Event_PlayerHealedOther(pPlayer, iHealed);
436-
bDrainAmmo = true;
435+
if (iHealed > 0)
436+
{
437+
CTF_GameStats.Event_PlayerHealedOther(pPlayer, iHealed);
438+
bDrainAmmo = true;
439+
}
437440

438441
// Restore ammo if applicable
439442
if (nLunchBoxType == LUNCHBOX_ADDS_AMMO)

0 commit comments

Comments
 (0)