*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@559 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-10 18:53:41 +00:00
parent a20544a250
commit 690207d8c2
+6 -2
View File
@@ -202,7 +202,7 @@ clientscore *findscore(client &c, bool insert)
if(!insert) loopv(clients)
{
client &o = *clients[i];
if(o.type!=ST_TCPIP)
if(o.type!=ST_TCPIP) continue;
if(o.clientnum!=c.clientnum && o.peer->address.host==c.peer->address.host && !strcmp(o.name, c.name)) return &o.score;
};
loopv(scores)
@@ -819,7 +819,11 @@ void process(ENetPacket *packet, int sender, int chan) // sender may be -1
if(newclient)
{
clientscore *sc = findscore(*clients[cn], false);
if(sc) sendf(-1, 1, "ri4", SV_RESUME, cn, sc->frags, sc->flags);
if(sc)
{
cl->score = *sc;
sendf(-1, 1, "ri4", SV_RESUME, cn, sc->frags, sc->flags);
};
};
getstring(text, p);
getint(p);