Fix show help text to include news and product

Commit 1bca66c0 added show news and commit 71bbd642 show product
without updating the help text.  Fix that.  The prompt is now too
long, so add option '?' to show it, and change the prompt to refer to
that.
This commit is contained in:
Markus Armbruster 2009-08-01 15:27:20 -04:00
parent 5705ab91b8
commit 162c79bb73

View file

@ -50,11 +50,14 @@ show(void)
char buf[1024]; char buf[1024];
int rlev; int rlev;
p = getstarg(player->argp[1], again:
"Show what (bridge, item, land, nuke, plane, sect, ship, tower, updates)? ", p = getstarg(player->argp[1], "Show what ('?' to list options)? ", buf);
buf);
if (!p || !*p) if (!p || !*p)
return RET_SYN; return RET_SYN;
if (*p == '?') {
pr("bridge, item, land, news, nuke, plane, sect, ship, product, tower, updates\n");
goto again;
}
natp = getnatp(player->cnum); natp = getnatp(player->cnum);
rlev = (int)(1.25 * natp->nat_level[NAT_RLEV]); rlev = (int)(1.25 * natp->nat_level[NAT_RLEV]);