r1019 - trunk/code/game
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Dec 29 06:41:35 EST 2006
Author: ludwig
Date: 2006-12-29 06:41:35 -0500 (Fri, 29 Dec 2006)
New Revision: 1019
Modified:
trunk/code/game/g_bot.c
Log:
kick bots by client number instead of name to avoid problems with
weird names (reported by 'DD')
Modified: trunk/code/game/g_bot.c
===================================================================
--- trunk/code/game/g_bot.c 2006-12-28 17:46:10 UTC (rev 1018)
+++ trunk/code/game/g_bot.c 2006-12-29 11:41:35 UTC (rev 1019)
@@ -306,7 +306,6 @@
*/
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 @@
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;
More information about the quake3-commits
mailing list