version 1.21 | | version 1.22 |
---|
| | |
/* | | /* |
* static char *rcsid_c_party_c = | | * static char *rcsid_c_party_c = |
* "$Id: c_party.c,v 1.21 2005/12/05 23:34:04 akirschbaum Exp $"; | | * "$Id: c_party.c,v 1.22 2005/12/17 18:21:44 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
static partylist * firstparty=NULL; /* Keeps track of first party in list */ | | static partylist * firstparty=NULL; /* Keeps track of first party in list */ |
static partylist * lastparty=NULL; /*Keeps track of last party in list */ | | static partylist * lastparty=NULL; /*Keeps track of last party in list */ |
| | |
| | partylist* get_firstparty() |
| | { |
| | return firstparty; |
| | } |
| | |
void remove_party(partylist *target_party); | | void remove_party(partylist *target_party); |
| | |
/* Forms the party struct for a party called 'params'. it is the responsibility | | /* Forms the party struct for a party called 'params'. it is the responsibility |
| | |
int player_count; | | int player_count; |
player *pl; | | player *pl; |
partylist *party; | | partylist *party; |
| | partylist* next = NULL; |
| | |
if (!firstparty) return; /* we can't obsolete parties if there aren't any */ | | if (!firstparty) return; /* we can't obsolete parties if there aren't any */ |
for (party=firstparty; party!=NULL; party=party->next) { | | for (party=firstparty; party!=NULL; party=next) { |
| | next = party->next; |
player_count=0; | | player_count=0; |
for (pl=first_player;pl!=NULL;pl=pl->next) | | for (pl=first_player;pl!=NULL;pl=pl->next) |
if (pl->party==party) player_count++; | | if (pl->party==party) player_count++; |