Skip to content

Commit 32a076d

Browse files
committed
Update tf_bot.cpp
1 parent dd46da1 commit 32a076d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/game/server/tf/bot/tf_bot.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5067,12 +5067,7 @@ Action< CTFBot > *CTFBot::OpportunisticallyUseWeaponAbilities( void )
50675067
if ( lunchbox->HasAmmo() )
50685068
{
50695069
// scout lunchboxes are also gated by their energy drink meter
5070-
#ifdef BDSBASE
5071-
CTFLunchBox_Drink* lunchboxDrink = (CTFLunchBox_Drink*)lunchbox;
5072-
if ( ( !IsPlayerClass( TF_CLASS_SCOUT ) && GetHealth() < GetMaxHealth() ) || ( lunchboxDrink && m_Shared.GetScoutEnergyDrinkMeter() >= 100 ) )
5073-
#else
50745070
if ( !IsPlayerClass( TF_CLASS_SCOUT ) || m_Shared.GetScoutEnergyDrinkMeter() >= 100 )
5075-
#endif
50765071
{
50775072
return new CTFBotUseItem( lunchbox );
50785073
}

0 commit comments

Comments
 (0)