no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@789 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-01-08 22:12:31 +00:00
parent 222db40606
commit cf533fc234
9 changed files with 50 additions and 49 deletions
+2 -3
View File
@@ -375,9 +375,8 @@ char *disc_reasons[] = { "normal", "end of packet", "client num", "kicked by mas
void disconnect_client(int n, int reason = -1)
{
if(!clients.inrange(n) || clients[n]->type!=ST_TCPIP) return;
if(m_ctf)
loopi(2) if(ctfflags[i].state==CTFF_STOLEN && ctfflags[i].actor_cn==n)
flagaction(i, SV_FLAGDROP, -1); // TESTME
if(m_ctf) loopi(2) if(ctfflags[i].state==CTFF_STOLEN && ctfflags[i].actor_cn==n)
flagaction(i, SV_FLAGDROP, -1);
client &c = *clients[n];
clientscore *sc = findscore(c, true);
if(sc) *sc = c.score;