… | |
… | |
454 | new_draw_info_format (NDI_UNIQUE, 0, op, "No artifact list for type %d\n", at->clone.type); |
454 | new_draw_info_format (NDI_UNIQUE, 0, op, "No artifact list for type %d\n", at->clone.type); |
455 | else |
455 | else |
456 | { |
456 | { |
457 | art = find_artifactlist (at->clone.type)->items; |
457 | art = find_artifactlist (at->clone.type)->items; |
458 | |
458 | |
459 | do |
459 | while (art) |
460 | { |
460 | { |
461 | if (!strcmp (art->item->name, cp)) |
461 | if (!strcmp (art->item->name, cp)) |
462 | break; |
462 | break; |
|
|
463 | |
463 | art = art->next; |
464 | art = art->next; |
464 | } |
465 | } |
465 | while (art != NULL); |
|
|
466 | |
466 | |
467 | if (!art) |
467 | if (!art) |
468 | new_draw_info_format (NDI_UNIQUE, 0, op, "No such artifact ([%d] of %s)", at->clone.type, cp); |
468 | new_draw_info_format (NDI_UNIQUE, 0, op, "No such artifact ([%d] of %s)", at->clone.type, cp); |
469 | } |
469 | } |
470 | |
470 | |