(load_plane_ship): Use load limits instead of flags to test whether a
ship type can load planes.
This commit is contained in:
parent
55df03f4ff
commit
44a9130bf3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue