(rpt): Add sentinel.

(EF_NEWS_CHR): New.
(empfile): Add its entry.
This commit is contained in:
Markus Armbruster 2005-10-29 06:27:00 +00:00
parent 6be5ba5d40
commit 19f2948620
4 changed files with 19 additions and 23 deletions

View file

@ -53,7 +53,7 @@
* - Sector infrastructure characteristics: intrchr[]
* - Ship characteristics: mchr[]
* Less important:
* - News item characteristics: rpt[] (TODO)
* - News item characteristics: rpt[]
* - News page headings: page_headings[] (TODO)
* - Treaty clause characteristics: tchr[]
* - Commands: player_coms[] (TODO)

View file

@ -119,12 +119,9 @@ struct empfile empfile[] = {
{EF_NUKE_CHR, "nuke chr", NULL, EFF_CFG,
sizeof(nchr[0]), NULL, NULL, NULL,
-1, -1, 0, 0, (char *)nchr, 0, nchr_ca},
#if 0
/* FIXME rpt[] lacks sentinel, xdchr() doesn't terminate */
{EF_, "news chr", NULL, EFF_CFG,
{EF_NEWS_CHR, "news chr", NULL, EFF_CFG,
sizeof(rpt[0]), NULL, NULL, NULL,
-1, -1, 0, 0, (char *)rpt, 0, rpt_ca},
#endif
{EF_TREATY_CHR, "treaty chr", NULL, EFF_CFG,
sizeof(tchr[0]), NULL, NULL, NULL,
-1, -1, 0, 0, (char *)tchr, 0, tchr_ca},

View file

@ -58,7 +58,7 @@ char *page_headings[N_MAX_PAGE + 1] = {
static char no_news[] = "does nothing in particular to %s";
struct rptstr rpt[N_MAX_VERB + 1] = {
struct rptstr rpt[N_MAX_VERB + 2] = {
/* nice page text */
/* 0*/ { 0, 0, { no_news, no_news } },
{ -4, N_FRONT, { "infantry capture %s territory",
@ -219,5 +219,6 @@ struct rptstr rpt[N_MAX_VERB + 1] = {
{ -3, N_FRONT, { "is repelled by %s while attempting to board a land unit",
/* 81*/ "forces prove inept at boarding %s's land unit" } },
{ -2, N_FRONT, { "mercenaries board one of %s's land units",
/* 82*/ "elite forces board %s land unit" } }
/* 82*/ "elite forces board %s land unit" } },
{ 0, 0, { NULL, NULL } }
};