From e8746e9af049b4eb14faf54ac067f11c594ee7cb Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sun, 20 Nov 2005 18:17:05 +0000 Subject: [PATCH] (tend_land): Allow spy units to be tended to and from sub with no land unit carrying capability. Closes #1313537. --- src/lib/commands/tend.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/commands/tend.c b/src/lib/commands/tend.c index 29648c97..d32f1bb6 100644 --- a/src/lib/commands/tend.c +++ b/src/lib/commands/tend.c @@ -242,7 +242,15 @@ tend_land(struct shpstr *tenderp, s_char *units) count_units(&target); getship(target.shp_uid, &target); - if (target.shp_nland >= mchr[(int)target.shp_type].m_nland) { + if ((mchr[(int)target.shp_type].m_flags & M_SUB) && + (lchr[(int)land.lnd_type].l_flags & L_SPY) && + !mchr[(int)target.shp_type].m_nland) { + if (target.shp_nland > 1) { + pr("%s doesn't have room for more than two spy units!\n", + prship(&target)); + continue; + } + } else if (target.shp_nland >= mchr[(int)target.shp_type].m_nland) { if (mchr[(int)target.shp_type].m_nland) pr("%s doesn't have room for any more land units!\n", prship(&target));