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:
parent
8ed7658f9b
commit
5b0cf9c2a3
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue