1 | |
|
|
2 | |
|
|
3 | /* Basic stuff for use with the alchemy code. Clearly some of this stuff |
1 | /* Basic stuff for use with the alchemy code. Clearly some of this stuff |
4 | * could go into server/alchemy, but I left it here just in case it proves |
2 | * could go into server/alchemy, but I left it here just in case it proves |
5 | * more generally useful. |
3 | * more generally useful. |
6 | * |
4 | * |
7 | * Nov 1995 - file created by b.t. thomas@astro.psu.edu |
5 | * Nov 1995 - file created by b.t. thomas@astro.psu.edu |
… | |
… | |
615 | if ((at = find_artifactlist (item->type))) |
613 | if ((at = find_artifactlist (item->type))) |
616 | for (art = at->items; art; art = art->next) |
614 | for (art = at->items; art; art = art->next) |
617 | if (!strcmp (art->item->name, rp->title)) |
615 | if (!strcmp (art->item->name, rp->title)) |
618 | break; |
616 | break; |
619 | |
617 | |
620 | free_object (item); |
618 | item->destroy (0); |
621 | |
619 | |
622 | return art; |
620 | return art; |
623 | } |
621 | } |
624 | |
622 | |
625 | int |
623 | int |