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

Comparing deliantra/server/socket/request.C (file contents):
Revision 1.92 by root, Mon Apr 30 17:39:59 2007 UTC vs.
Revision 1.94 by root, Thu May 3 09:26:45 2007 UTC

736{ 736{
737 dynbuf_text buf; 737 dynbuf_text buf;
738 738
739 player *pl = ob->contr; 739 player *pl = ob->contr;
740 740
741 if (pl->ranged_skill) 741 if (pl->ranged_ob)
742 buf << " Range: " 742 buf << " Range: " << pl->ranged_ob->name;
743 << (pl->ranged_ob
744 ? pl->ranged_ob->name
745 : pl->ranged_skill->name);
746 743
747 if (pl->combat_skill) 744 if (pl->combat_ob)
748 buf << " Combat: " 745 buf << " Combat: " << pl->combat_ob->name;
749 << (pl->combat_ob
750 ? pl->combat_ob->name
751 : pl->combat_skill->name);
752 746
753 if (pl->golem) 747 if (pl->golem)
754 buf << " Golem: " << pl->golem->name; 748 buf << " Golem: " << pl->golem->name;
755 749
756 if (buf.empty ()) 750 buf.linearise (obuf);
757 *obuf = 0; 751 obuf [buf.size ()] = 0;
758 else
759 memcpy (obuf, buf.linearise () + 1, buf.size () - 1);
760} 752}
761 753
762#define AddIfInt64(Old,New,Type) if (Old != New) {\ 754#define AddIfInt64(Old,New,Type) if (Old != New) {\
763 Old = New; \ 755 Old = New; \
764 sl << uint8 (Type) << uint64 (New); \ 756 sl << uint8 (Type) << uint64 (New); \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines