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

Comparing deliantra/server/socket/loop.C (file contents):
Revision 1.78 by root, Sat Dec 27 01:25:00 2008 UTC vs.
Revision 1.79 by root, Wed Mar 18 11:09:14 2009 UTC

95 { 95 {
96 command &cmd = cmd_queue.front (); 96 command &cmd = cmd_queue.front ();
97 97
98 if (cmd.stamp + MAX_QUEUE_BACKLOG < NOW) 98 if (cmd.stamp + MAX_QUEUE_BACKLOG < NOW)
99 { 99 {
100 reset_state (); 100 reset_state (); // the command might actually reset some movement state etc.
101 send_packet_printf ("drawinfo %d ignoring delayed commands.", NDI_RED); 101
102 if (pl)
103 pl->failmsg (
104 "Cannot keep up with your commands, ignoring them! "
105 "H<Your character cannot keep up with the instructions you give G<him|her>. "
106 "Try issuing commands slower, or, if G<he|she> is incapacitated (paralyzed and so on), "
107 "wait till your character can act again.\n\nIf G<he|she> is permanently stuck, then "
108 "try the B<suicide> command (or use B<chat> to ask somebody to B<invite> you out).>"
109 );
102 } 110 }
103 else 111 else
104 execute (cmd.handler, cmd.data, cmd.datalen); 112 execute (cmd.handler, cmd.data, cmd.datalen);
105 113
106 sfree<char> (cmd.data, cmd.datalen + 1); 114 sfree<char> (cmd.data, cmd.datalen + 1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines