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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user