Skip to content

Commit 6d6053e

Browse files
committed
Fixed bot_kick not working on TF2 or HL2 MP when using nav_generate.
1 parent 6587d34 commit 6d6053e

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/game/server/nav_generate.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3434,8 +3434,14 @@ void CNavMesh::BeginGeneration( bool incremental )
34343434
}
34353435
}
34363436
#else
3437-
engine->ServerCommand( "bot_kick\n" );
3438-
#endif
3437+
#if defined(HL2MP)
3438+
engine->ServerCommand("hl2mp_bot_kick all\n");
3439+
#elif defined(TF_CLIENT_DLL)
3440+
engine->ServerCommand("tf_bot_kick all\n");
3441+
#else
3442+
engine->ServerCommand("bot_kick\n");
3443+
#endif
3444+
#endif // TERROR
34393445

34403446
// Right now, incrementally-generated areas won't connect to existing areas automatically.
34413447
// Since this means hand-editing will be necessary, don't do a full analyze.

0 commit comments

Comments
 (0)