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.39 by root, Wed Dec 31 17:35:37 2008 UTC vs.
Revision 1.40 by root, Thu Jan 1 11:41:17 2009 UTC

1349 1349
1350 /* separator of items */ 1350 /* separator of items */
1351 strcpy (buf, "--- \n"); 1351 strcpy (buf, "--- \n");
1352 1352
1353 /* Name */ 1353 /* Name */
1354 if (art->allowed != NULL && strcmp (art->allowed->name, "All")) 1354 if (art->allowed && art->allowed->name != shstr_All)
1355 { 1355 {
1356 linked_char *temp, *next = art->allowed; 1356 linked_char *temp, *next = art->allowed;
1357 1357
1358 do 1358 do
1359 { 1359 {
1536 op_name = at->object::name; 1536 op_name = at->object::name;
1537 else 1537 else
1538 LOG (llevError, "formula_msg() can't find arch %s for formula.\n", op_name); 1538 LOG (llevError, "formula_msg() can't find arch %s for formula.\n", op_name);
1539 1539
1540 /* item name */ 1540 /* item name */
1541 if (strcmp (formula->title, "NONE")) 1541 if (formula->title != shstr_NONE)
1542 { 1542 {
1543 sprintf (retbuf, "%sThe %s of %s", retbuf, op_name, &formula->title); 1543 sprintf (retbuf, "%sThe %s of %s", retbuf, op_name, &formula->title);
1544 /* This results in things like pile of philo. sulfur. 1544 /* This results in things like pile of philo. sulfur.
1545 * while philo. sulfur may look better, without this, 1545 * while philo. sulfur may look better, without this,
1546 * you get things like 'the wise' because its missing the 1546 * you get things like 'the wise' because its missing the
1559 strcat (retbuf, at->title); 1559 strcat (retbuf, at->title);
1560 strcat (title, " "); 1560 strcat (title, " ");
1561 strcat (title, at->title); 1561 strcat (title, at->title);
1562 } 1562 }
1563 } 1563 }
1564
1564 /* Lets name the book something meaningful ! */ 1565 /* Lets name the book something meaningful ! */
1565 book->name = title; 1566 book->name = title;
1566 book->title = NULL; 1567 book->title = NULL;
1567 1568
1568 /* ingredients to make it */ 1569 /* ingredients to make it */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines