From: Markus Armbruster Date: Fri, 1 Jul 2011 17:54:55 +0000 (+0200) Subject: Don't record prompts in player_commands[] X-Git-Tag: v4.3.28~30 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=a9611a5794f96eec8ab70fe9550e872d1ab6529b Don't record prompts in player_commands[] Recording prompts is of marginal value, and it's in the next commit's way. If you need better logs after a crash, consider enabling the journal log file. --- diff --git a/src/lib/player/empdis.c b/src/lib/player/empdis.c index 94e9c7d8d..93162521b 100644 --- a/src/lib/player/empdis.c +++ b/src/lib/player/empdis.c @@ -72,11 +72,6 @@ getcommand(char *combufp) struct natstr *natp = getnatp(player->cnum); char buf[1024]; /* user text */ - if (++player_commands_index >= KEEP_COMMANDS) - player_commands_index = 0; - sprintf(player_commands[player_commands_index], "%3d %3d [prompt]", - player_commands_index, player->cnum); - prprompt(natp->nat_timeused / 60, natp->nat_btu); if (recvclient(buf, sizeof(buf)) < 0) return -1;