Code: Show/Hide --- periodic.c 2009-02-09 11:53:14.000000000 -0500
+++ periodic.c.2 2009-02-09 11:53:04.000000000 -0500 @@ -80,14 +80,21 @@ fd = (freq_data*)TrGet(fdata, freq); if (fd == NULL) { - fd = amalloc(sizeof(*fd)); - fd->head.key = freq; - fd->players = 0; - fd->flags = flagcore->CountFreqFlags(set->arena, freq); - TrPut(&fdata, &fd->head); - freqcount++; + int flags = flagcore->CountFreqFlags(set->arena, freq); + if(flags) + { + fd = amalloc(sizeof(*fd)); + fd->head.key = freq; + fd->players = 1; + fd->flags = flags; + TrPut(&fdata, &fd->head); + freqcount++; + } + } + else + { + fd->players++; } - fd->players++; totalplayers++; } pd->Unlock(); |