the prototype of the future (to avoid future protocol changes)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5349 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-07-12 18:15:18 +00:00
parent 610c274c77
commit 067c39bb62
+10 -5
View File
@@ -666,11 +666,16 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
case SV_POINTS:
{
int count = getint(p);
loopi(count){
int pcn = getint(p); int score = getint(p);
playerent *ppl = pcn == getclientnum() ? player1 : getclient(pcn);
if (!ppl) break;
ppl->points += score;
if ( count > 0 ) {
loopi(count){
int pcn = getint(p); int score = getint(p);
playerent *ppl = pcn == getclientnum() ? player1 : getclient(pcn);
if (!ppl) break;
ppl->points += score;
}
} else {
int medals = getint(p);
loopi(medals) { getint(p); getint(p); getint(p); }
}
break;
}