(news): Fix rev. 1.13: fail command before printing headlines.
This commit is contained in:
parent
c686c5648b
commit
297ee5eab0
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,6 @@ news(void)
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
memset(page_has_news, 0, sizeof(page_has_news));
|
memset(page_has_news, 0, sizeof(page_has_news));
|
||||||
memset(sectors_taken, 0, sizeof(sectors_taken));
|
memset(sectors_taken, 0, sizeof(sectors_taken));
|
||||||
(void)head();
|
|
||||||
(void)time(&now);
|
(void)time(&now);
|
||||||
natp = getnatp(player->cnum);
|
natp = getnatp(player->cnum);
|
||||||
then = natp->nat_newstim;
|
then = natp->nat_newstim;
|
||||||
|
@ -89,6 +88,7 @@ news(void)
|
||||||
then = now - delta;
|
then = now - delta;
|
||||||
}
|
}
|
||||||
natp->nat_newstim = now;
|
natp->nat_newstim = now;
|
||||||
|
head();
|
||||||
pr("\nThe details of Empire news since %s", ctime(&then));
|
pr("\nThe details of Empire news since %s", ctime(&then));
|
||||||
while (nxtitem(&nstr, &nws)) {
|
while (nxtitem(&nstr, &nws)) {
|
||||||
if (nws.nws_when < then)
|
if (nws.nws_when < then)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue