(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
|
@ -72,8 +72,8 @@ give(void)
|
|||
n = sect.sct_item[ip->i_vtype];
|
||||
if (amt < 0 && -amt > n) {
|
||||
m = 0;
|
||||
} else if (amt > 0 && amt + n > 9990) {
|
||||
m = 9990;
|
||||
} else if (amt > 0 && amt + n > ITEM_MAX) {
|
||||
m = ITEM_MAX;
|
||||
} else
|
||||
m = n + amt;
|
||||
sect.sct_item[ip->i_vtype] = m;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue