Difference for server/c_party.c from version 1.21 to 1.22


version 1.21 version 1.22
Line 1
 
Line 1
 /*  /*
  * 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 $";
  */   */
   
 /*  /*
Line 35
 
Line 35
 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
Line 110
 
Line 115
     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++;


Legend:
line(s) removed in v.1.21 
line(s) changed
 line(s) added in v.1.22

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:29