(M_XLIGHT, M_CHOPPER): Redundant, remove.

(init_mchr): Don't set them.
(carrier_planes): Use m_nxlight, m_nchoppers instead.
This commit is contained in:
Markus Armbruster 2007-11-23 18:50:46 +00:00
parent b900866ea8
commit 57f589e2e4
4 changed files with 6 additions and 14 deletions

View file

@ -397,9 +397,9 @@ carrier_planes(struct shpstr *sp, int msl)
res |= P_L;
if ((mcp->m_flags & M_MSL) && msl)
res |= P_L;
if ((mcp->m_flags & M_CHOPPER) && !msl)
if (mcp->m_nchoppers && !msl)
res |= P_K;
if (mcp->m_flags & M_XLIGHT)
if (mcp->m_nxlight)
res |= P_E;
return res;
}