--- deliantra/server/socket/request.C 2012/11/04 01:01:13 1.190 +++ deliantra/server/socket/request.C 2012/11/15 04:50:50 1.191 @@ -500,50 +500,6 @@ pl->count = 0; } -/** - * This handles the general commands from the client (ie, north, fire, cast, - * etc.). It is a lot like PlayerCmd above, but is called with the - * 'ncom' method which gives more information back to the client so it - * can throttle. - */ -void -NewPlayerCmd (char *buf, int len, player *pl) -{ - if (len <= 6) - { - LOG (llevDebug, "%s: corrupt ncom command <%s>: not long enough (%d) - discarding\n", pl->ns->host, buf, len); - return; - } - - uint16 cmdid = net_uint16 ((uint8 *)buf); - sint32 repeat = net_sint32 ((uint8 *)buf + 2); - - /* -1 is special - no repeat, but don't update */ - if (repeat != -1) - pl->count = repeat; - - buf += 6; //len -= 6; - - execute_newserver_command (pl->ob, buf); - - /* Perhaps something better should be done with a left over count. - * Cleaning up the input should probably be done first - all actions - * for the command that issued the count should be done before any other - * commands. - */ - pl->count = 0; - - //TODO: schmorp thinks whatever this calculates, it makes no sense at all - int time = pl->ob->has_active_speed () - ? (int) (MAX_TIME / pl->ob->speed) - : MAX_TIME * 100; - - /* Send confirmation of command execution now */ - packet sl ("comc"); - sl << uint16 (cmdid) << uint32 (time); - pl->ns->send_packet (sl); -} - /** This is a reply to a previous query. */ void ReplyCmd (char *buf, int len, client *ns)