(gift): Remove the type argument, can be determined from the ptr
argument. Replace prship/prland/prplane/prnuke code with obj_nameof().
This commit is contained in:
parent
55107731cc
commit
f246f86542
4 changed files with 22 additions and 42 deletions
|
@ -263,7 +263,7 @@ tend_land(struct shpstr *tenderp, char *units)
|
|||
sprintf(buf, "loaded on your %s at %s",
|
||||
prship(&target), xyas(target.shp_x, target.shp_y,
|
||||
target.shp_own));
|
||||
gift(target.shp_own, player->cnum, &land, EF_LAND, buf);
|
||||
gift(target.shp_own, player->cnum, &land, buf);
|
||||
land.lnd_ship = target.shp_uid;
|
||||
land.lnd_harden = 0;
|
||||
land.lnd_mission = 0;
|
||||
|
@ -280,7 +280,7 @@ tend_land(struct shpstr *tenderp, char *units)
|
|||
if (plane.pln_land != land.lnd_uid)
|
||||
continue;
|
||||
sprintf(buf, "loaded on %s", prship(&target));
|
||||
gift(target.shp_own, player->cnum, &plane, EF_PLANE, buf);
|
||||
gift(target.shp_own, player->cnum, &plane, buf);
|
||||
plane.pln_mission = 0;
|
||||
putplane(plane.pln_uid, &plane);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue