From 08bc09443d31d630fa44ffe0c5980ef28bb50c9b Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 14 Dec 2008 16:49:18 -0500 Subject: [PATCH] Land units with zero reaction radius can't go on reserve mission --- src/lib/commands/miss.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/lib/commands/miss.c b/src/lib/commands/miss.c index ab403878..586eb605 100644 --- a/src/lib/commands/miss.c +++ b/src/lib/commands/miss.c @@ -172,10 +172,16 @@ mission(void) if (!player->owner || gp->own == 0) continue; - if (mission == MI_RESERVE && !lnd_can_attack((struct lndstr *)gp)) { - pr("%s is not designed to fight ground troops\n", - obj_nameof(gp)); - continue; + if (mission == MI_RESERVE) { + if (!lnd_can_attack((struct lndstr *)gp)) { + pr("%s is not designed to fight ground troops\n", + obj_nameof(gp)); + continue; + } + if (!lchr[gp->type].l_rad) { + pr("%s cannot react anywhere!\n", obj_nameof(gp)); + continue; + } } if ((mission == MI_INTERDICT) && (type == EF_SHIP))