Skip to content

Commit 297ae79

Browse files
committed
Fixed bot_kick not working on TF2 or HL2 MP when using nav_generate. (mapbase-source#458)
1 parent 13d5b06 commit 297ae79

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/game/server/nav_generate.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3434,7 +3434,13 @@ void CNavMesh::BeginGeneration( bool incremental )
34343434
}
34353435
}
34363436
#else
3437-
engine->ServerCommand( "bot_kick\n" );
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
34383444
#endif
34393445

34403446
// Right now, incrementally-generated areas won't connect to existing areas automatically.

0 commit comments

Comments
 (0)