(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
|
@ -767,8 +767,8 @@ load_comm_ship(struct sctstr *sectp, struct shpstr *sp,
|
|||
move_amt = -ship_amt;
|
||||
if (move_amt > sect_amt)
|
||||
move_amt = sect_amt;
|
||||
if (move_amt < sect_amt - 9999)
|
||||
move_amt = sect_amt - 9999;
|
||||
if (move_amt < sect_amt - ITEM_MAX)
|
||||
move_amt = sect_amt - ITEM_MAX;
|
||||
if (!move_amt)
|
||||
return RET_OK;
|
||||
if (sectp->sct_oldown != player->cnum && item == V_CIVIL) {
|
||||
|
@ -970,8 +970,8 @@ load_comm_land(struct sctstr *sectp, struct lndstr *lp,
|
|||
move_amt = -land_amt;
|
||||
if (move_amt > sect_amt)
|
||||
move_amt = sect_amt;
|
||||
if (move_amt < sect_amt - 9999)
|
||||
move_amt = sect_amt - 9999;
|
||||
if (move_amt < sect_amt - ITEM_MAX)
|
||||
move_amt = sect_amt - ITEM_MAX;
|
||||
if (!move_amt)
|
||||
return RET_OK;
|
||||
if (sectp->sct_own != player->cnum && move_amt > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue