Difference for common/item.c from version 1.9 to 1.10


version 1.9 version 1.10
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_item_c =   * static char *rcsid_item_c =
  *   "$Id: item.c,v 1.9 2000/08/07 05:16:34 cvs Exp $";   *   "$Id: item.c,v 1.10 2000/10/18 20:00:39 peterm Exp $";
  */   */
   
 /*  /*
Line 244
 
Line 244
     }      }
   
     switch(op->type) {      switch(op->type) {
         case SPELLBOOK:
    if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) {
        if(!op->title) {
    safe_strcat(buf," of ", &len, HUGE_BUF);
    if(op->slaying) safe_strcat(buf,op->slaying, &len, HUGE_BUF);
    else
      safe_strcat(buf,spells[op->stats.sp].name, &len, HUGE_BUF);
    if(op->type != SPELLBOOK) {
        sprintf(buf2, " (lvl %d)", op->level);
        safe_strcat(buf, buf2, &len, HUGE_BUF);
    }
        }
    }
   
    break;
       case SCROLL:        case SCROLL:
       case WAND:        case WAND:
       case SPELLBOOK:  
       case ROD:        case ROD:
  if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) {   if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) {
      if(!op->title) {       if(!op->title) {
Line 427
 
Line 441
     }      }
   
     switch(op->type) {      switch(op->type) {
         case SPELLBOOK:
    if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) {
        if(!op->title) {
    strcat(buf," of ");
    if(op->slaying) strcat(buf,op->slaying);
    else
      strcat(buf,spells[op->stats.sp].name);
    if(op->type != SPELLBOOK)
        sprintf(buf+strlen(buf), " (lvl %d)", op->level);
        }
    }
    break;
       case SCROLL:        case SCROLL:
       case WAND:        case WAND:
       case SPELLBOOK:  
       case ROD:        case ROD:
  if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) {   if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) {
      if(!op->title) {       if(!op->title) {


Legend:
line(s) removed in v.1.9 
line(s) changed
 line(s) added in v.1.10

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