]> git.pond.sub.org Git - empserver/commitdiff
(resupply_commod,has_supply,use_supply): Remove unaccessed leftover
authorMarc Olzheim <marcolz@stack.nl>
Tue, 14 Dec 2004 17:40:59 +0000 (17:40 +0000)
committerMarc Olzheim <marcolz@stack.nl>
Tue, 14 Dec 2004 17:40:59 +0000 (17:40 +0000)
variables lcp.  No functional changes.

src/lib/subs/supply.c

index 9b413ccfd7e8386bc4bb6b268bae035a40efd8fb..020d19d77c8609d0ee321e069275e3396821ed4c 100644 (file)
@@ -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) {