(news): Add a comment to explain why argument is ignored when HIDDEN

is on.
This commit is contained in:
Markus Armbruster 2004-09-07 06:16:23 +00:00
parent b3730786b5
commit d4fe345edb

View file

@ -71,6 +71,11 @@ news(void)
(void)time(&now);
natp = getnatp(player->cnum);
then = natp->nat_newstim;
/*
* Don't disclose events before contact. Proper solution would be
* to timestamp the contact. Cheesy approximatation: disable old
* news.
*/
if (!opt_HIDDEN) {
if (player->argp[1] != 0 && isdigit(*player->argp[1])) {
delta = days(atoi(player->argp[1]));