Don't let hardened missiles be loaded on ships or land units
Fix load_plane_ship() and load_plane_land() to reject hardened planes.
This commit is contained in:
parent
1d0f4b3071
commit
dd0e0423ee
1 changed files with 13 additions and 0 deletions
|
@ -404,6 +404,12 @@ load_plane_ship(struct sctstr *sectp, struct shpstr *sp, int noisy,
|
|||
prplane(&pln), pln.pln_land);
|
||||
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 ship */
|
||||
|
@ -799,6 +805,13 @@ load_plane_land(struct sctstr *sectp, struct lndstr *lp, int noisy,
|
|||
prplane(&pln), pln.pln_land);
|
||||
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 */
|
||||
if (load_unload == UNLOAD) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue