(build_land): unused variable natp, remove.
This commit is contained in:
parent
9c75164a0c
commit
f7e9440bfe
1 changed files with 0 additions and 3 deletions
|
@ -463,7 +463,6 @@ build_land(register struct sctstr *sp, register struct lchrstr *lp,
|
||||||
struct lndstr land;
|
struct lndstr land;
|
||||||
struct nstr_item nstr;
|
struct nstr_item nstr;
|
||||||
int avail, cost;
|
int avail, cost;
|
||||||
struct natstr *natp;
|
|
||||||
float eff = LAND_MINEFF / 100.0;
|
float eff = LAND_MINEFF / 100.0;
|
||||||
int mil, lcm, hcm, gun, shell;
|
int mil, lcm, hcm, gun, shell;
|
||||||
int freeland = 0;
|
int freeland = 0;
|
||||||
|
@ -478,8 +477,6 @@ build_land(register struct sctstr *sp, register struct lchrstr *lp,
|
||||||
hcm = roundavg(((double)lp->l_hcm * eff));
|
hcm = roundavg(((double)lp->l_hcm * eff));
|
||||||
lcm = roundavg(((double)lp->l_lcm * eff));
|
lcm = roundavg(((double)lp->l_lcm * eff));
|
||||||
|
|
||||||
natp = getnatp(player->cnum);
|
|
||||||
|
|
||||||
if (sp->sct_type != SCT_HEADQ) {
|
if (sp->sct_type != SCT_HEADQ) {
|
||||||
pr("Land Units must be built in headquarters.\n");
|
pr("Land Units must be built in headquarters.\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue