(ITEM_MAX): New, value 9999.
(give, deliver_it): Use it instead of 9990. (load_comm_ship, load_comm_land, rese): Use it instead of 9999. (thre): Use it instead of 10000. (check_market, explore, move, pln_dropoff): Use it instead of 32767. (unload_it): Use it instead of 99999 (which couldn't possibly work, but what do you expect from the autonav code).
This commit is contained in:
parent
5ec624514a
commit
95ef2b139d
11 changed files with 27 additions and 31 deletions
|
@ -236,8 +236,8 @@ explore(void)
|
|||
start.sct_flags &= ~MOVE_IN_PROGRESS;
|
||||
putsect(&start);
|
||||
amt_dst = sect.sct_item[vtype];
|
||||
if (32767 - amt_dst < amount) {
|
||||
amount = 32767 - amt_dst;
|
||||
if (amount > ITEM_MAX - amt_dst) {
|
||||
amount = ITEM_MAX - amt_dst;
|
||||
pr("Only %d can be left there.\n", amount);
|
||||
if (amount <= 0)
|
||||
getsect(start.sct_x, start.sct_y, §);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue