Merge branch 'master' of github.com:r0ket/r0ket
This commit is contained in:
commit
093f8a2bfa
|
@ -315,9 +315,18 @@ void processPacket(struct packet *p)
|
||||||
void processAnnounce(struct announce *a)
|
void processAnnounce(struct announce *a)
|
||||||
{
|
{
|
||||||
if( gamecount < sizeof(games)/sizeof(games[0]) ){
|
if( gamecount < sizeof(games)/sizeof(games[0]) ){
|
||||||
|
int repeat=0;
|
||||||
|
int i;
|
||||||
|
for (i=0; i<gamecount; i++){
|
||||||
|
if (a->gameId == games[i].gameId){
|
||||||
|
repeat=1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (repeat!=1){
|
||||||
games[gamecount] = *a;
|
games[gamecount] = *a;
|
||||||
gamecount++;
|
gamecount++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void processText(struct text *t)
|
void processText(struct text *t)
|
||||||
|
|
Loading…
Reference in New Issue