mirror of https://github.com/DrBeef/ioq3quest.git
kick bots by client number instead of name to avoid problems with
weird names (reported by 'DD')
This commit is contained in:
parent
a9db8cc1f8
commit
739409973a
|
@ -306,7 +306,6 @@ G_RemoveRandomBot
|
||||||
*/
|
*/
|
||||||
int G_RemoveRandomBot( int team ) {
|
int G_RemoveRandomBot( int team ) {
|
||||||
int i;
|
int i;
|
||||||
char netname[36];
|
|
||||||
gclient_t *cl;
|
gclient_t *cl;
|
||||||
|
|
||||||
for ( i=0 ; i< g_maxclients.integer ; i++ ) {
|
for ( i=0 ; i< g_maxclients.integer ; i++ ) {
|
||||||
|
@ -320,9 +319,7 @@ int G_RemoveRandomBot( int team ) {
|
||||||
if ( team >= 0 && cl->sess.sessionTeam != team ) {
|
if ( team >= 0 && cl->sess.sessionTeam != team ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
strcpy(netname, cl->pers.netname);
|
trap_SendConsoleCommand( EXEC_INSERT, va("clientkick %d\n", cl->ps.clientNum) );
|
||||||
Q_CleanStr(netname);
|
|
||||||
trap_SendConsoleCommand( EXEC_INSERT, va("kick %s\n", netname) );
|
|
||||||
return qtrue;
|
return qtrue;
|
||||||
}
|
}
|
||||||
return qfalse;
|
return qfalse;
|
||||||
|
|
Loading…
Reference in New Issue