From a9611a5794f96eec8ab70fe9550e872d1ab6529b Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 1 Jul 2011 19:54:55 +0200 Subject: [PATCH] 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. --- src/lib/player/empdis.c | 5 ----- 1 file changed, 5 deletions(-) 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; -- 2.43.0