Difference for server/apply.c from version 1.59 to 1.60


version 1.59 version 1.60
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_apply_c =   * static char *rcsid_apply_c =
  *   "$Id: apply.c,v 1.59 2002/03/01 21:33:11 avogl Exp $";   *   "$Id: apply.c,v 1.60 2002/03/03 20:05:58 avogl Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 1810
 
Line 1810
       op->stats.hp=op->stats.maxhp;        op->stats.hp=op->stats.maxhp;
     else {      else {
       /* check if this is a dragon (player), eating some flesh */        /* check if this is a dragon (player), eating some flesh */
       if (tmp->type==FLESH && strcmp(op->race, "dragon")==0        if (tmp->type==FLESH && is_dragon_pl(op) && dragon_eat_flesh(op, tmp))
    && dragon_eat_flesh(op, tmp))  
  ;   ;
       else {        else {
  /* usual case - no dragon meal: */   /* usual case - no dragon meal: */
Line 1825
 
Line 1824
  if(!QUERY_FLAG(tmp, FLAG_CURSED)) {   if(!QUERY_FLAG(tmp, FLAG_CURSED)) {
    char buf[MAX_BUF];     char buf[MAX_BUF];
        
    if (strcmp(op->race, "dragon")!=0) {     if (!is_dragon_pl(op)) {
      /* eating message for normal players*/       /* eating message for normal players*/
      if(tmp->type==DRINK)       if(tmp->type==DRINK)
        sprintf(buf,"Ahhh...that %s tasted good.",tmp->name);         sprintf(buf,"Ahhh...that %s tasted good.",tmp->name);
Line 1887
 
Line 1886
   int MAXLEVEL = 110;    int MAXLEVEL = 110;
      
   /* let's make sure and doublecheck the parameters */    /* let's make sure and doublecheck the parameters */
   if (op->type!=PLAYER || meal->type!=FLESH || strcmp(op->race, "dragon")!=0)    if (meal->type!=FLESH || !is_dragon_pl(op))
     return 0;      return 0;
      
   /* now grab the 'dragon_skin'- and 'dragon_ability'-forces    /* now grab the 'dragon_skin'- and 'dragon_ability'-forces


Legend:
line(s) removed in v.1.59 
line(s) changed
 line(s) added in v.1.60

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