Difference for server/skills.c from version 1.68 to 1.69


version 1.68 version 1.69
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_skills_c =   * static char *rcsid_skills_c =
  *   "$Id: skills.c,v 1.68 2005/11/16 08:16:09 mwedel Exp $";   *   "$Id: skills.c,v 1.69 2005/12/23 21:56:57 akirschbaum Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 274
 
Line 274
  if (attempt_steal(tmp, op, skill)) {   if (attempt_steal(tmp, op, skill)) {
      if (tmp->type==PLAYER) /* no xp for stealing from another player */       if (tmp->type==PLAYER) /* no xp for stealing from another player */
  return 0;   return 0;
      else return (calc_skill_exp(op,tmp, skill));  
        /* no xp for stealing from pets (of players) */
        if (QUERY_FLAG(tmp, FLAG_FRIENDLY) && tmp->attack_movement == PETMOVE) {
    object *owner = get_owner(tmp);
    if (owner != NULL && owner->type == PLAYER)
        return 0;
        }
   
        return (calc_skill_exp(op,tmp, skill));
  }   }
     }      }
     return 0;      return 0;


Legend:
line(s) removed in v.1.68 
line(s) changed
 line(s) added in v.1.69

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