(news): Fix rev. 1.13: fail command before printing headlines.

This commit is contained in:
Markus Armbruster 2006-01-29 17:13:25 +00:00
parent c686c5648b
commit 297ee5eab0

View file

@ -71,7 +71,6 @@ news(void)
return RET_SYN;
memset(page_has_news, 0, sizeof(page_has_news));
memset(sectors_taken, 0, sizeof(sectors_taken));
(void)head();
(void)time(&now);
natp = getnatp(player->cnum);
then = natp->nat_newstim;
@ -89,6 +88,7 @@ news(void)
then = now - delta;
}
natp->nat_newstim = now;
head();
pr("\nThe details of Empire news since %s", ctime(&then));
while (nxtitem(&nstr, &nws)) {
if (nws.nws_when < then)