diff --git a/code/game/g_bot.c b/code/game/g_bot.c index fcb270f5..2ce6fc5f 100644 --- a/code/game/g_bot.c +++ b/code/game/g_bot.c @@ -306,7 +306,6 @@ G_RemoveRandomBot */ int G_RemoveRandomBot( int team ) { int i; - char netname[36]; gclient_t *cl; for ( i=0 ; i< g_maxclients.integer ; i++ ) { @@ -320,9 +319,7 @@ int G_RemoveRandomBot( int team ) { if ( team >= 0 && cl->sess.sessionTeam != team ) { continue; } - strcpy(netname, cl->pers.netname); - Q_CleanStr(netname); - trap_SendConsoleCommand( EXEC_INSERT, va("kick %s\n", netname) ); + trap_SendConsoleCommand( EXEC_INSERT, va("clientkick %d\n", cl->ps.clientNum) ); return qtrue; } return qfalse;