(comstr, buy, check_market, display_mark, reset, sell): Change comstr
member com_type from mnemo character to item type. (whichitem): Unused, remove. (check_market): Use full item name instead of mnemo in telegrams. (display_mark): Separate arguments for item type and cheapest only. Cheapest only of specific item type is not implemented. (rese): Guard against bad com_type. Delete some code that had no effect.
This commit is contained in:
parent
988f9a8be7
commit
ca80c373bf
8 changed files with 35 additions and 59 deletions
|
@ -282,17 +282,3 @@ get_outstand(int cnum)
|
|||
}
|
||||
return loantot;
|
||||
}
|
||||
|
||||
struct ichrstr *
|
||||
whichitem(char p)
|
||||
{
|
||||
register int i;
|
||||
|
||||
if (p == 0)
|
||||
return 0;
|
||||
for (i = 1; ichr[i].i_mnem != 0; i++)
|
||||
if (p == ichr[i].i_mnem)
|
||||
return (struct ichrstr *)(&ichr[i]);
|
||||
pr("Unrecognized item \"%c\"\n", p);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue