(buy, mark, display_mark): Move argument evaluation from

display_mark() to callers.  buy() no longer accepts "all".  It used to
display all lots, but didn't let you buy any.  Similar nonsense
happened for "" if buy() prompted for it.

(display_mark): Fix size of cheapest_items[].

(player_coms): Document mark accepting "all".
This commit is contained in:
Markus Armbruster 2004-04-10 08:43:19 +00:00
parent b0627a97cb
commit 60bbb6b0c0
5 changed files with 34 additions and 34 deletions

View file

@ -150,7 +150,7 @@ struct cmndstr player_coms[] = {
NORM + CAP},
{"lunload <COMM|\"land\"|\"plane\"> <UNITS> <NUM|UNITS|PLANES>", 1,
lload, C_MOD, NORM + CAP},
{"market [COMM]", 0, mark, 0, VIS},
{"market <COMM|\"all\">", 0, mark, 0, VIS},
{"map <SECTS|SHIP> [s|l|p|*|h]", 0, map, C_MOD, VIS},
{"march <UNITS> <PATH|DESTINATION>", 1, march, C_MOD, NORM + CAP},
{"mine <SHIPS>", 2, mine, C_MOD, NORM + MONEY + CAP},