Skip to content

Commit 02d8499

Browse files
committed
fix bots not fighting in warmup
1 parent 395150f commit 02d8499

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/game/server/tf/bot/behavior/tf_bot_behavior.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,8 +1340,11 @@ void CTFBotMainAction::FireWeaponAtEnemy( CTFBot *me )
13401340

13411341
if ( TFGameRules()->InSetup() )
13421342
{
1343-
// wait until the gates open
1344-
return;
1343+
if ( TFGameRules()->IsMannVsMachineMode() || TFGameRules()->State_Get() != GR_STATE_BETWEEN_RNDS )
1344+
{
1345+
// wait until the gates open
1346+
return;
1347+
}
13451348
}
13461349

13471350
if ( myWeapon->IsMeleeWeapon() )

0 commit comments

Comments
 (0)