From 690207d8c2b2931cf3f51480b321f752b864d0e5 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 10 Nov 2006 18:53:41 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@559 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/server.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/src/server.cpp b/source/src/server.cpp index 6be12fe4..4d1d3731 100644 --- a/source/src/server.cpp +++ b/source/src/server.cpp @@ -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);