ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/readable.C
(Generate patch)

Comparing deliantra/server/common/readable.C (file contents):
Revision 1.11 by root, Sun Oct 15 02:16:34 2006 UTC vs.
Revision 1.12 by root, Tue Dec 12 20:53:02 2006 UTC

1100 /* alter book properties */ 1100 /* alter book properties */
1101 if ((tmpbook = get_archetype (t->archname)) != NULL) 1101 if ((tmpbook = get_archetype (t->archname)) != NULL)
1102 { 1102 {
1103 tmpbook->msg = book->msg; 1103 tmpbook->msg = book->msg;
1104 copy_object (tmpbook, book); 1104 copy_object (tmpbook, book);
1105 free_object (tmpbook); 1105 tmpbook->destroy (0);
1106 } 1106 }
1107 1107
1108 book->title = t->authour; 1108 book->title = t->authour;
1109 book->name = t->name; 1109 book->name = t->name;
1110 book->level = t->level; 1110 book->level = t->level;
1473 add_abilities (tmp, art->item); 1473 add_abilities (tmp, art->item);
1474 tmp->type = type; 1474 tmp->type = type;
1475 SET_FLAG (tmp, FLAG_IDENTIFIED); 1475 SET_FLAG (tmp, FLAG_IDENTIFIED);
1476 if ((ch = describe_item (tmp, NULL)) != NULL && strlen (ch) > 1) 1476 if ((ch = describe_item (tmp, NULL)) != NULL && strlen (ch) > 1)
1477 sprintf (buf, "%s Properties of this artifact include: \n %s \n", buf, ch); 1477 sprintf (buf, "%s Properties of this artifact include: \n %s \n", buf, ch);
1478 free_object (tmp); 1478 tmp->destroy (0);
1479 /* add the buf if it will fit */ 1479 /* add the buf if it will fit */
1480 if (!book_overflow (retbuf, buf, booksize)) 1480 if (!book_overflow (retbuf, buf, booksize))
1481 strcat (retbuf, buf); 1481 strcat (retbuf, buf);
1482 else 1482 else
1483 break; 1483 break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines