Difference for common/player.c from version 1.3 to 1.4


version 1.3 version 1.4
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_player_c =   * static char *rcsid_player_c =
  *   "$Id: player.c,v 1.3 2000/12/04 00:40:03 cvs Exp $";   *   "$Id: player.c,v 1.4 2000/12/06 06:06:38 cvs Exp $";
  */   */
   
 /*  /*
Line 113
 
Line 113
 /* 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 */
   
 object *find_skill(object *op, int skillnr) {  object *find_skill(object *op, int skillnr) {
   object *tmp;      object *tmp, *skill1=NULL;
 #ifdef LINKED_SKILL_LIST  #ifdef LINKED_SKILL_LIST
   objectlink *obl;    objectlink *obl;
   
Line 125
 
Line 125
   
   /* *sigh*; we didnt find it. Perhaps because the skill we requested    /* *sigh*; we didnt find it. Perhaps because the skill we requested
    * is an unapplied tool. Lets search entire inventory */     * is an unapplied tool. Lets search entire inventory */
   for(tmp=op->inv;tmp;tmp=tmp->below)       for (tmp=op->inv;tmp;tmp=tmp->below) {
     if(tmp->type==SKILL&&tmp->stats.sp==skillnr)    if(tmp->type==SKILL&&tmp->stats.sp==skillnr) {
  return tmp;       if (tmp->invisible) return tmp;
        else skill1=tmp;
   return ((object *) NULL);    }
       }
       return skill1;
 }  }


Legend:
line(s) removed in v.1.3 
line(s) changed
 line(s) added in v.1.4

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