Difference for common/player.c from version 1.8 to 1.9


version 1.8 version 1.9
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_player_c =   * static char *rcsid_player_c =
  *   "$Id: player.c,v 1.8 2001/11/17 21:25:21 michtoen Exp $";   *   "$Id: player.c,v 1.9 2001/11/19 23:30:27 michtoen Exp $";
  */   */
   
 /*  /*
Line 116
 
Line 116
     char gender[32]="";      char gender[32]="";
     char prof[32]="";      char prof[32]="";
     char rank[32]="";      char rank[32]="";
       char align[32]="";
          
     /* collect all information from the force objects. Just walk one time through them*/      /* collect all information from the force objects. Just walk one time through them*/
     for(walk=pl->ob->inv;walk!=NULL;walk=walk->below)      for(walk=pl->ob->inv;walk!=NULL;walk=walk->below)
     {      {
         if (!strcmp(walk->name,"GUILD_FORCE"))          if (!strcmp(walk->name,"GUILD_FORCE") && !strcmp(walk->arch->name,"guild_force"))
           {
               if(walk->title)
             strcpy(prof,walk->title);              strcpy(prof,walk->title);
         if (!strcmp(walk->name,"RANK_FORCE"))          }
           else if (!strcmp(walk->name,"RANK_FORCE") && !strcmp(walk->arch->name,"rank_force"))
           {
               if(walk->title)
         {          {
             strcpy(rank,walk->title);              strcpy(rank,walk->title);
             strcat(rank," ");              strcat(rank," ");
         }          }
         if (!strcmp(walk->name,"GENDER_FORCE"))          }
           else if (!strcmp(walk->name,"GENDER_FORCE") && !strcmp(walk->arch->name,"gender_force"))
           {
               if(walk->title)
         {          {
             strcpy(gender,walk->title);              strcpy(gender,walk->title);
             strcat(gender," ");              strcat(gender," ");
         }          }
           }
           else if (!strcmp(walk->name,"ALIGNMENT_FORCE") && !strcmp(walk->arch->name,"alignment_force"))
           {
               if(walk->title)
                   strcpy(align,walk->title);
           }
     }      }
   
     sprintf(pl->ext_title,"%s%s\n%s%s %s", rank, pl->ob->name, gender, pl->ob->race, prof);      sprintf(pl->ext_title,"%s%s %s\n%s%s %s", rank, pl->ob->name,align, gender, pl->ob->race, prof);
   
 }  }
   
 /* find_skill() - looks for the skill and returns a pointer to it if found */  /* find_skill() - looks for the skill and returns a pointer to it if found */


Legend:
line(s) removed in v.1.8 
line(s) changed
 line(s) added in v.1.9

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