diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-12-29 11:41:35 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-12-29 11:41:35 +0000 |
commit | 0f3fab33bf1c143e1807a7bc333fb73c5f85a41a (patch) | |
tree | 06f86423f4a140a8e3f625a74ddd326de733024b /code/game | |
parent | 1c3f853c00e7ec5c219715bb584f52f9569d6f9c (diff) | |
download | ioquake3-aero-0f3fab33bf1c143e1807a7bc333fb73c5f85a41a.tar.gz ioquake3-aero-0f3fab33bf1c143e1807a7bc333fb73c5f85a41a.zip |
kick bots by client number instead of name to avoid problems with
weird names (reported by 'DD')
git-svn-id: svn://svn.icculus.org/quake3/trunk@1019 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/game')
-rw-r--r-- | code/game/g_bot.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/code/game/g_bot.c b/code/game/g_bot.c index fcb270f..2ce6fc5 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; |