(resupply_commod,has_supply,use_supply): Remove unaccessed leftover
variables lcp. No functional changes.
This commit is contained in:
parent
61cb34b7ef
commit
44c273dd01
1 changed files with 0 additions and 9 deletions
|
@ -83,11 +83,8 @@ void
|
|||
resupply_commod(struct lndstr *lp, i_type type)
|
||||
{
|
||||
int amt;
|
||||
struct lchrstr *lcp;
|
||||
struct shpstr ship;
|
||||
|
||||
lcp = &lchr[(int)lp->lnd_type];
|
||||
|
||||
/* Ok, do we now have enough? */
|
||||
amt = get_minimum(lp, type) - lp->lnd_item[type];
|
||||
if (amt > 0) {
|
||||
|
@ -482,13 +479,10 @@ get_minimum(struct lndstr *lp, i_type type)
|
|||
int
|
||||
has_supply(struct lndstr *lp)
|
||||
{
|
||||
struct lchrstr *lcp;
|
||||
int shells_needed, shells, keepshells;
|
||||
int food, food_needed, keepfood;
|
||||
int fuel_needed, fuel, petrol_needed, petrol, keeppetrol;
|
||||
|
||||
lcp = &lchr[(int)lp->lnd_type];
|
||||
|
||||
if (!opt_NOFOOD) {
|
||||
food_needed = get_minimum(lp, I_FOOD);
|
||||
food = keepfood = lp->lnd_item[I_FOOD];
|
||||
|
@ -549,12 +543,9 @@ has_supply(struct lndstr *lp)
|
|||
int
|
||||
use_supply(struct lndstr *lp)
|
||||
{
|
||||
struct lchrstr *lcp;
|
||||
int shells_needed, shells, food, food_needed;
|
||||
int fuel_needed, fuel, petrol_needed, petrol;
|
||||
|
||||
lcp = &lchr[(int)lp->lnd_type];
|
||||
|
||||
shells_needed = lp->lnd_ammo;
|
||||
shells = lp->lnd_item[I_SHELL];
|
||||
if (shells < shells_needed) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue