Difference for common/player.c from version 1.13 to 1.14


version 1.13 version 1.14
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_player_c =   * static char *rcsid_player_c =
  *   "$Id: player.c,v 1.13 2002/07/15 04:57:12 mwedel Exp $";   *   "$Id: player.c,v 1.14 2003/10/26 06:56:57 mwedel Exp $";
  */   */
   
 /*  /*
Line 50
 
Line 50
     CFREE(pl);      CFREE(pl);
 }  }
   
 /* find_skill() - looks for the skill and returns a pointer to it if found */  
   
 object *find_skill(object *op, int skillnr) {  
     object *tmp, *skill1=NULL;  
   
     /* *sigh*; we didnt find it. Perhaps because the skill we requested  
      * is an unapplied tool. Lets search entire inventory */  
     for (tmp=op->inv;tmp;tmp=tmp->below) {  
  if(tmp->type==SKILL&&tmp->stats.sp==skillnr) {  
      if (!tmp->invisible) return tmp;  
      else skill1=tmp;  
  }  
     }  
     return skill1;  
 }  
   
 /* Determine if the attacktype represented by the  /* Determine if the attacktype represented by the
  * specified attack-number is enabled for dragon players.   * specified attack-number is enabled for dragon players.


Legend:
line(s) removed in v.1.13 
line(s) changed
 line(s) added in v.1.14

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