(can_be_on_ship, could_be_on_ship): Take pointer rather than UID

arguments.  Rename.  Callers changed.
This commit is contained in:
Markus Armbruster 2007-10-31 06:39:37 +00:00
parent 51165cf3fc
commit d3fcc89f56
4 changed files with 11 additions and 16 deletions

View file

@ -414,7 +414,7 @@ load_plane_ship(struct sctstr *sectp, struct shpstr *sp, int noisy,
continue;
/* ship to (plane or missle) sanity */
if (!can_be_on_ship(pln.pln_uid, sp->shp_uid)) {
if (!could_be_on_ship(&pln, sp)) {
if (plchr[(int)pln.pln_type].pl_flags & P_L) {
strcpy(buf, "planes");
} else if (plchr[(int)pln.pln_type].pl_flags & P_K) {