Skip to content

Commit acc8b3e

Browse files
committed
bot fixes
1 parent 2004dab commit acc8b3e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void CTFBotLocomotion::Approach( const Vector &pos, float goalWeight )
7575
return;
7676
}
7777

78-
if (me->m_Shared.InCond(TF_COND_HALLOWEEN_KART) && me->IsInAVehicle())
78+
if (me->m_Shared.InCond(TF_COND_HALLOWEEN_KART) || me->IsInAVehicle())
7979
{
8080
me->ReleaseForwardButton();
8181
me->ReleaseBackwardButton();

src/game/shared/tf/tf_weapon_lunchbox.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#include "econ_item_view.h"
1818
#include "econ_item_system.h"
1919
#include "tf_gamestats.h"
20+
#ifdef BDSBASE
21+
#include "bot/tf_bot.h"
22+
#endif
2023
#endif
2124

2225
//=============================================================================
@@ -466,7 +469,8 @@ void CTFLunchBox::ApplyBiteEffects( CTFPlayer *pPlayer )
466469
#endif
467470
}
468471

469-
if (pPlayer->IsBot() || pPlayer->IsFakeClient())
472+
CTFBot* pBot = ToTFBot(pPlayer);
473+
if (pBot)
470474
{
471475
bDrainAmmo = false;
472476
}

0 commit comments

Comments
 (0)