(lndchr): Rename member l_mxland to l_nland for consistency with
similar unit characteristics.
This commit is contained in:
parent
9a30f30107
commit
dae17432ae
4 changed files with 4 additions and 4 deletions
|
@ -123,7 +123,7 @@ struct lchrstr {
|
||||||
u_char l_fuelc; /* fuel capacity */
|
u_char l_fuelc; /* fuel capacity */
|
||||||
u_char l_fuelu; /* fuel used per 10 mob */
|
u_char l_fuelu; /* fuel used per 10 mob */
|
||||||
u_char l_nxlight; /* maximum number of xlight planes */
|
u_char l_nxlight; /* maximum number of xlight planes */
|
||||||
u_char l_mxland; /* maximum number of units */
|
u_char l_nland; /* maximum number of units */
|
||||||
long l_flags; /* what special things can this unit do */
|
long l_flags; /* what special things can this unit do */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -375,7 +375,7 @@ struct castr lchr_ca[] = {
|
||||||
{NSC_UCHAR, 0, 0, offsetof(struct lchrstr, l_fuelc), "fuelc", EF_BAD},
|
{NSC_UCHAR, 0, 0, offsetof(struct lchrstr, l_fuelc), "fuelc", EF_BAD},
|
||||||
{NSC_UCHAR, 0, 0, offsetof(struct lchrstr, l_fuelu), "fuelu", EF_BAD},
|
{NSC_UCHAR, 0, 0, offsetof(struct lchrstr, l_fuelu), "fuelu", EF_BAD},
|
||||||
{NSC_UCHAR, 0, 0, offsetof(struct lchrstr, l_nxlight), "nxlight", EF_BAD},
|
{NSC_UCHAR, 0, 0, offsetof(struct lchrstr, l_nxlight), "nxlight", EF_BAD},
|
||||||
{NSC_UCHAR, 0, 0, offsetof(struct lchrstr, l_mxland), "mxland", EF_BAD},
|
{NSC_UCHAR, 0, 0, offsetof(struct lchrstr, l_nland), "nland", EF_BAD},
|
||||||
{NSC_LONG, NSC_BITS, 0, offsetof(struct lchrstr, l_flags), "flags",
|
{NSC_LONG, NSC_BITS, 0, offsetof(struct lchrstr, l_flags), "flags",
|
||||||
EF_LAND_CHR_FLAGS},
|
EF_LAND_CHR_FLAGS},
|
||||||
{NSC_NOTYPE, 0, 0, 0, NULL, EF_BAD}
|
{NSC_NOTYPE, 0, 0, 0, NULL, EF_BAD}
|
||||||
|
|
|
@ -1444,5 +1444,5 @@ lnd_set_tech(struct lndstr *lp, int tlev)
|
||||||
lp->lnd_fuelc = (int)LND_FC(lcp->l_fuelc, tech_diff);
|
lp->lnd_fuelc = (int)LND_FC(lcp->l_fuelc, tech_diff);
|
||||||
lp->lnd_fuelu = (int)LND_FU(lcp->l_fuelu, tech_diff);
|
lp->lnd_fuelu = (int)LND_FU(lcp->l_fuelu, tech_diff);
|
||||||
lp->lnd_maxlight = (int)LND_XPL(lcp->l_nxlight, tech_diff);
|
lp->lnd_maxlight = (int)LND_XPL(lcp->l_nxlight, tech_diff);
|
||||||
lp->lnd_maxland = (int)LND_MXL(lcp->l_mxland, tech_diff);
|
lp->lnd_maxland = (int)LND_MXL(lcp->l_nland, tech_diff);
|
||||||
}
|
}
|
||||||
|
|
|
@ -488,7 +488,7 @@ show_land_stats(int tlev)
|
||||||
(int)LND_FC(lcp->l_fuelc, ourtlev),
|
(int)LND_FC(lcp->l_fuelc, ourtlev),
|
||||||
(int)LND_FU(lcp->l_fuelu, ourtlev),
|
(int)LND_FU(lcp->l_fuelu, ourtlev),
|
||||||
(int)LND_XPL(lcp->l_nxlight, ourtlev),
|
(int)LND_XPL(lcp->l_nxlight, ourtlev),
|
||||||
(int)LND_MXL(lcp->l_mxland, ourtlev));
|
(int)LND_MXL(lcp->l_nland, ourtlev));
|
||||||
|
|
||||||
pr("\n");
|
pr("\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue