From 44a9130bf3279104ca36ea3c3102e21a2afbaf68 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 1 Nov 2007 07:29:38 +0000 Subject: [PATCH] (load_plane_ship): Use load limits instead of flags to test whether a ship type can load planes. --- src/lib/commands/load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/load.c b/src/lib/commands/load.c index 5dc22be1..2db1a8f3 100644 --- a/src/lib/commands/load.c +++ b/src/lib/commands/load.c @@ -354,7 +354,7 @@ load_plane_ship(struct sctstr *sectp, struct shpstr *sp, int noisy, char prompt[512]; 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) pr("%s cannot carry planes\n", prship(sp)); return 0;