--- deliantra/server/socket/request.C 2006/12/15 19:59:20 1.41 +++ deliantra/server/socket/request.C 2006/12/16 20:16:37 1.43 @@ -88,17 +88,12 @@ }; static void -socket_map_scroll (client * ns, int dx, int dy) +socket_map_scroll (client *ns, int dx, int dy) { struct Map newmap; int x, y, mx, my; - { - packet sl; - - sl.printf ("map_scroll %d %d", dx, dy); - ns->send_packet (sl); - } + ns->send_packet_printf ("map_scroll %d %d", dx, dy); /* If we are using the Map1aCmd, we may in fact send * head information that is outside the viewable map. @@ -577,15 +572,10 @@ void AddMeCmd (char *buf, int len, client * ns) { - Settings oldsettings; - - oldsettings = settings; if (ns->status != Ns_Add || add_player (ns)) ns->send_packet ("addme_failed"); else ns->send_packet ("addme_success"); - - settings = oldsettings; } /** Reply to ExtendedInfos command */