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.160 by root, Mon Nov 9 18:47:56 2009 UTC vs.
Revision 1.161 by root, Sun Nov 29 09:41:28 2009 UTC

577 */ 577 */
578 pl->count = 0; 578 pl->count = 0;
579 579
580 //TODO: schmorp thinks whatever this calculates, it makes no sense at all 580 //TODO: schmorp thinks whatever this calculates, it makes no sense at all
581 int time = pl->ob->has_active_speed () 581 int time = pl->ob->has_active_speed ()
582 ? (int) (MAX_TIME / fabs (pl->ob->speed)) 582 ? (int) (MAX_TIME / pl->ob->speed)
583 : MAX_TIME * 100; 583 : MAX_TIME * 100;
584 584
585 /* Send confirmation of command execution now */ 585 /* Send confirmation of command execution now */
586 packet sl ("comc"); 586 packet sl ("comc");
587 sl << uint16 (cmdid) << uint32 (time); 587 sl << uint16 (cmdid) << uint32 (time);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines