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

Comparing deliantra/server/server/player.C (file contents):
Revision 1.46 by root, Mon Dec 18 04:07:31 2006 UTC vs.
Revision 1.47 by root, Tue Dec 19 04:58:05 2006 UTC

2552 2552
2553 /* call this here - we also will call this in do_ericserver, but 2553 /* call this here - we also will call this in do_ericserver, but
2554 * the players time has been increased when doericserver has been 2554 * the players time has been increased when doericserver has been
2555 * called, so we recheck it here. 2555 * called, so we recheck it here.
2556 */ 2556 */
2557 op->contr->socket->handle_command (); 2557 //TODO: better than handling 8 commands, use some more intelligent rate-limiting
2558 for (int rep = 8; --rep && op->contr->socket->handle_command (); )
2559 ;
2560
2558 if (op->speed_left < 0) 2561 if (op->speed_left < 0)
2559 return 0; 2562 return 0;
2560 2563
2561 if (op->direction && (op->contr->run_on || op->contr->fire_on)) 2564 if (op->direction && (op->contr->run_on || op->contr->fire_on))
2562 { 2565 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines