diff --git a/include/land.h b/include/land.h index fdea429a..a6e435df 100644 --- a/include/land.h +++ b/include/land.h @@ -123,7 +123,7 @@ struct lchrstr { u_char l_fuelc; /* fuel capacity */ u_char l_fuelu; /* fuel used per 10 mob */ 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 */ }; diff --git a/src/lib/global/nsc.c b/src/lib/global/nsc.c index d340ff9d..8c1a4912 100644 --- a/src/lib/global/nsc.c +++ b/src/lib/global/nsc.c @@ -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_fuelu), "fuelu", 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", EF_LAND_CHR_FLAGS}, {NSC_NOTYPE, 0, 0, 0, NULL, EF_BAD} diff --git a/src/lib/subs/lndsub.c b/src/lib/subs/lndsub.c index 39e023dc..0fad77ed 100644 --- a/src/lib/subs/lndsub.c +++ b/src/lib/subs/lndsub.c @@ -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_fuelu = (int)LND_FU(lcp->l_fuelu, 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); } diff --git a/src/lib/subs/show.c b/src/lib/subs/show.c index b179df37..534dc298 100644 --- a/src/lib/subs/show.c +++ b/src/lib/subs/show.c @@ -488,7 +488,7 @@ show_land_stats(int tlev) (int)LND_FC(lcp->l_fuelc, ourtlev), (int)LND_FU(lcp->l_fuelu, ourtlev), (int)LND_XPL(lcp->l_nxlight, ourtlev), - (int)LND_MXL(lcp->l_mxland, ourtlev)); + (int)LND_MXL(lcp->l_nland, ourtlev)); pr("\n"); }