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

Comparing deliantra/server/server/c_misc.C (file contents):
Revision 1.56 by root, Wed Apr 18 18:03:18 2007 UTC vs.
Revision 1.57 by root, Wed Apr 25 19:19:54 2007 UTC

593command_kill_pets (object *op, char *params) 593command_kill_pets (object *op, char *params)
594{ 594{
595 objectlink *obl, *next; 595 objectlink *obl, *next;
596 int counter = 0, removecount = 0; 596 int counter = 0, removecount = 0;
597 597
598 if (params == NULL) 598 if (!params)
599 { 599 {
600 terminate_all_pets (op); 600 terminate_all_pets (op);
601 new_draw_info (NDI_UNIQUE, 0, op, "Your pets have been killed."); 601 new_draw_info (NDI_UNIQUE, 0, op, "Your pets have been killed.");
602 } 602 }
603 else 603 else
604 { 604 {
605 int target = atoi (params); 605 int target = atoi (params);
606 606
607 for (obl = first_friendly_object; obl != NULL; obl = next) 607 for (obl = first_friendly_object; obl; obl = next)
608 { 608 {
609 object *ob = obl->ob; 609 object *ob = obl->ob;
610 610
611 next = obl->next; 611 next = obl->next;
612 612

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines