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.
This commit is contained in:
Markus Armbruster 2011-07-01 19:54:55 +02:00
parent d3899f5732
commit a9611a5794

View file

@ -72,11 +72,6 @@ getcommand(char *combufp)
struct natstr *natp = getnatp(player->cnum); struct natstr *natp = getnatp(player->cnum);
char buf[1024]; /* user text */ 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); prprompt(natp->nat_timeused / 60, natp->nat_btu);
if (recvclient(buf, sizeof(buf)) < 0) if (recvclient(buf, sizeof(buf)) < 0)
return -1; return -1;