From 5b0cf9c2a3ccda0c71d45053ee0cd502860dc12a Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 13 Jul 2011 22:47:05 +0200 Subject: [PATCH] Fix lradar to reject land units loaded on land units Probably overlooked when trains were added in 4.0.0. While there, improve the message for land units on ships. --- src/lib/commands/rada.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/commands/rada.c b/src/lib/commands/rada.c index d21bbebb1..809b7f8c2 100644 --- a/src/lib/commands/rada.c +++ b/src/lib/commands/rada.c @@ -102,7 +102,13 @@ radar(int type) continue; } if (item.land.lnd_ship >= 0) { - pr("Units on ships can't use radar!\n"); + pr("%s is stowed on ship #%d, and can't use radar!\n", + prland(&item.land), item.land.lnd_ship); + continue; + } + if (item.land.lnd_land >= 0) { + pr("%s is stowed on land #%d, and can't use radar!\n", + prland(&item.land), item.land.lnd_land); continue; } spy = lchr[item.land.lnd_type].l_spy; -- 2.43.0