(load_plane_ship): Use load limits instead of flags to test whether a

ship type can load planes.
This commit is contained in:
Markus Armbruster 2007-11-01 07:29:38 +00:00
parent 55df03f4ff
commit 44a9130bf3

View file

@ -354,7 +354,7 @@ load_plane_ship(struct sctstr *sectp, struct shpstr *sp, int noisy,
char prompt[512]; char prompt[512];
struct mchrstr *mcp = mchr + sp->shp_type; struct mchrstr *mcp = mchr + sp->shp_type;
if (!(mcp->m_flags & (M_CHOPPER | M_XLIGHT | M_FLY | M_MSL))) { if (mcp->m_nplanes + mcp->m_nchoppers + mcp->m_nxlight == 0) {
if (noisy) if (noisy)
pr("%s cannot carry planes\n", prship(sp)); pr("%s cannot carry planes\n", prship(sp));
return 0; return 0;