(buy, move, prod, dodistribute, produce): Obey ITEM_MAX. Previous
change to move() was incomplete.
This commit is contained in:
parent
913774e53e
commit
9b7a65b865
5 changed files with 16 additions and 18 deletions
|
@ -163,7 +163,7 @@ buy(void)
|
|||
ip = whichitem(comm.com_type);
|
||||
n = sect.sct_item[ip->i_vtype];
|
||||
qty = comm.com_amount;
|
||||
if (qty + n > 9990) {
|
||||
if (qty + n > ITEM_MAX) {
|
||||
pr("That sector cannot hold %d more %s. It currently holds %d.\n",
|
||||
qty, ip->i_name, n);
|
||||
return RET_FAIL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue