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.29 by root, Wed Dec 13 21:27:09 2006 UTC vs.
Revision 1.30 by root, Thu Dec 14 00:01:37 2006 UTC

793 { 793 {
794 LOG (llevDebug, "Corrupt ncom command <%s> not long enough - discarding\n", buf); 794 LOG (llevDebug, "Corrupt ncom command <%s> not long enough - discarding\n", buf);
795 return; 795 return;
796 } 796 }
797 797
798 packet = GetShort_String (buf); 798 packet = net_uint16 (buf);
799 repeat = GetInt_String (buf + 2); 799 repeat = net_uint32 (buf + 2);
800
800 /* -1 is special - no repeat, but don't update */ 801 /* -1 is special - no repeat, but don't update */
801 if (repeat != -1) 802 if (repeat != -1)
802 pl->count = repeat; 803 pl->count = repeat;
803 804
804 if ((len - 4) >= MAX_BUF) 805 if ((len - 4) >= MAX_BUF)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines