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.64 by pippijn, Sat Jan 20 13:47:17 2007 UTC vs.
Revision 1.65 by root, Sun Jan 21 21:28:27 2007 UTC

798 * commands. 798 * commands.
799 */ 799 */
800 pl->count = 0; 800 pl->count = 0;
801 801
802 //TODO: schmorp thinks whatever this calculates, it makes no sense at all 802 //TODO: schmorp thinks whatever this calculates, it makes no sense at all
803 int time = FABS (pl->ob->speed) < 0.001 803 int time = fabs (pl->ob->speed) < 0.001
804 ? time = MAX_TIME * 100 804 ? time = MAX_TIME * 100
805 : time = (int) (MAX_TIME / FABS (pl->ob->speed)); 805 : time = (int) (MAX_TIME / fabs (pl->ob->speed));
806 806
807 /* Send confirmation of command execution now */ 807 /* Send confirmation of command execution now */
808 packet sl ("comc"); 808 packet sl ("comc");
809 sl << uint16 (cmdid) << uint32 (time); 809 sl << uint16 (cmdid) << uint32 (time);
810 pl->ns->send_packet (sl); 810 pl->ns->send_packet (sl);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines