This de-duplicates the check, and skips it when unloading. It never
made sense there, and can't happen anymore since the previous commit.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
prplane(pp), pp->pln_land);
return 0;
}
+ if (pp->pln_harden) {
+ if (noisy)
+ pr("%s has been hardened and can't be loaded\n",
+ prplane(pp));
+ return 0;
+ }
return 1;
}
}
if (loading && !plane_loadable(&pln, noisy))
continue;
- if (pln.pln_harden != 0) {
- if (noisy)
- pr("%s has been hardened and can't be loaded\n",
- prplane(&pln));
- continue;
- }
if (!loading) {
if (pln.pln_ship != sp->shp_uid)
}
if (loading && !plane_loadable(&pln, noisy))
continue;
- if (pln.pln_harden != 0) {
- if (noisy)
- pr("%s has been hardened and can't be loaded\n",
- prplane(&pln));
- continue;
- }
/* Plane sanity done */
/* Find the right unit */