Probably overlooked when trains were added in 4.0.0.
While there, improve the message for land units on ships.
continue;
}
if (item.land.lnd_ship >= 0) {
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;
continue;
}
spy = lchr[item.land.lnd_type].l_spy;