--- deliantra/server/socket/info.C 2006/12/25 14:43:23 1.25 +++ deliantra/server/socket/info.C 2006/12/31 17:17:23 1.28 @@ -187,29 +187,19 @@ { if (flags & NDI_ALL) { - player *tmppl; - for_all_players (pl) - new_draw_info ((flags & ~NDI_ALL), pri, tmppl->ob, buf); - - return; - } + new_draw_info (flags & ~NDI_ALL, pri, pl->ob, buf); - if (!pl || (pl->type == PLAYER && pl->contr == NULL)) - { - /* Write to the socket? */ - print_message (0, NULL, buf); return; } - if (pl->type != PLAYER) + if (!pl || pl->type != PLAYER || !pl->contr || !pl->contr->ns) return; if (pri >= pl->contr->listening) return; if ((flags & NDI_COLOR_MASK) == NDI_BLACK && !(flags & NDI_UNIQUE)) - /* following prints stuff out, as appropriate */ check_output_buffers (pl, buf); else print_message (flags & NDI_COLOR_MASK, pl, buf); @@ -229,11 +219,8 @@ char buf[HUGE_BUF]; va_list ap; - va_start (ap, format); - vsnprintf (buf, HUGE_BUF, format, ap); - va_end (ap); new_draw_info (flags, pri, pl, buf);