Difference for server/apply.c from version 1.24 to 1.25


version 1.24 version 1.25
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_apply_c =   * static char *rcsid_apply_c =
  *   "$Id: apply.c,v 1.24 2000/12/04 00:40:05 cvs Exp $";   *   "$Id: apply.c,v 1.25 2000/12/14 03:52:33 avogl Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 239
 
Line 239
  if (tmp->resist[i]) {   if (tmp->resist[i]) {
      if (!force) force=get_archetype("force");       if (!force) force=get_archetype("force");
      memcpy(force->resist, tmp->resist, sizeof(tmp->resist));       memcpy(force->resist, tmp->resist, sizeof(tmp->resist));
        force->type=POTION_EFFECT;
      break;  /* Only need to find one protection since we copy entire batch */       break;  /* Only need to find one protection since we copy entire batch */
  }   }
     }      }
Line 247
 
Line 248
  /* cursed items last longer */   /* cursed items last longer */
  if(QUERY_FLAG(tmp, FLAG_CURSED) || QUERY_FLAG(tmp, FLAG_DAMNED)) {   if(QUERY_FLAG(tmp, FLAG_CURSED) || QUERY_FLAG(tmp, FLAG_DAMNED)) {
      force->stats.food*=10;       force->stats.food*=10;
      for (i=0; i<NROFATTACKS; i++)
        if (force->resist[i] > 0)
          force->resist[i] = -force->resist[i];  /* prot => vuln */
  }   }
  force->speed_left= -1;   force->speed_left= -1;
  force = insert_ob_in_ob(force,op);   force = insert_ob_in_ob(force,op);


Legend:
line(s) removed in v.1.24 
line(s) changed
 line(s) added in v.1.25

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