Fix transport to reject planes loaded on land units

The transported plane remains on its carrier.  When the land unit
moves, the plane is teleported right back to it.  Broken since
Chainsaw 3 added land units.

While there, improve the message for planes on ships.
This commit is contained in:
Markus Armbruster 2011-07-16 09:10:46 +02:00
parent 5b0cf9c2a3
commit 41dc6de306

View file

@ -170,7 +170,12 @@ tran_plane(void)
continue;
type = plane.pln_type;
if (plane.pln_ship >= 0) {
pr("%s is at sea and can't be transported\n", prplane(&plane));
pr("%s is stowed on ship #%d, and can't be transported\n",
prplane(&plane), plane.pln_ship);
return RET_FAIL;
} else if (plane.pln_land >= 0) {
pr("%s is stowed on land #%d, and can't be transported\n",
prplane(&plane), plane.pln_land);
return RET_FAIL;
} else if (plane.pln_harden != 0) {
pr("%s has been hardened and can't be transported\n",