Don't let engineer mine while it is on a ship or land unit

This commit is contained in:
Markus Armbruster 2009-02-14 09:06:51 +01:00
parent 7da69c92e0
commit 41f3e67e8b

View file

@ -109,6 +109,11 @@ landmine(void)
lp = &lchr[(int)land.lnd_type];
if (!(lp->l_flags & L_ENGINEER))
continue;
if (land.lnd_ship >= 0 || land.lnd_land >= 0) {
pr("%s is on a %s\n", prland(&land),
land. lnd_ship >= 0 ? "ship" : "land unit");
continue;
}
if (land.lnd_mobil < 1) {
pr("Unit %d is out of mobility\n", land.lnd_uid);
continue;