… | |
… | |
785 | for (obl = first_friendly_object; obl != NULL; obl = next) |
785 | for (obl = first_friendly_object; obl != NULL; obl = next) |
786 | { |
786 | { |
787 | object *ob = obl->ob; |
787 | object *ob = obl->ob; |
788 | |
788 | |
789 | next = obl->next; |
789 | next = obl->next; |
790 | if (get_owner (ob) == op) |
790 | if (ob->owner == op) |
791 | { |
791 | { |
792 | if (target == 0) |
792 | if (target == 0) |
793 | { |
793 | { |
794 | if (counter == 0) |
794 | if (counter == 0) |
795 | new_draw_info (NDI_UNIQUE, 0, op, "Pets:"); |
795 | new_draw_info (NDI_UNIQUE, 0, op, "Pets:"); |
… | |
… | |
1447 | for (obl = first_friendly_object; obl != NULL; obl = next) |
1447 | for (obl = first_friendly_object; obl != NULL; obl = next) |
1448 | { |
1448 | { |
1449 | object *ob = obl->ob; |
1449 | object *ob = obl->ob; |
1450 | |
1450 | |
1451 | next = obl->next; |
1451 | next = obl->next; |
1452 | if (get_owner (ob) == op) |
1452 | if (ob->owner == op) |
1453 | if (++counter == target || (target == 0 && !strcasecmp (ob->name, params))) |
1453 | if (++counter == target || (target == 0 && !strcasecmp (ob->name, params))) |
1454 | { |
1454 | { |
1455 | ob->destroy (); |
1455 | ob->destroy (); |
1456 | removecount++; |
1456 | removecount++; |
1457 | } |
1457 | } |