Skip to content

Commit 8a7f56a

Browse files
committed
fix: MvM bomb carrier voice line playing during normal CTF with bots
1 parent 7ecbf95 commit 8a7f56a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/server/tf/bot/behavior/scenario/capture_the_flag/tf_bot_deliver_flag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ ActionResult< CTFBot > CTFBotDeliverFlag::Update( CTFBot *me, float interval )
243243

244244
m_flTotalTravelDistance = NavAreaTravelDistance( me->GetLastKnownArea(), TheNavMesh->GetNavArea( zone->WorldSpaceCenter() ), cost );
245245

246-
if ( flOldTravelDistance != -1.0f && m_flTotalTravelDistance - flOldTravelDistance > 2000.0f )
246+
if ( TFGameRules()->IsMannVsMachineMode() && flOldTravelDistance != -1.0f && m_flTotalTravelDistance - flOldTravelDistance > 2000.0f )
247247
{
248248
TFGameRules()->BroadcastSound( 255, "Announcer.MVM_Bomb_Reset" );
249249

0 commit comments

Comments
 (0)