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.
This commit is contained in:
Markus Armbruster 2011-07-13 22:47:05 +02:00
parent 8ed7658f9b
commit 5b0cf9c2a3

View file

@ -102,7 +102,13 @@ radar(int type)
continue; continue;
} }
if (item.land.lnd_ship >= 0) { 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; continue;
} }
spy = lchr[item.land.lnd_type].l_spy; spy = lchr[item.land.lnd_type].l_spy;