Move msl_equip() to callers, internal linkage
This commit is contained in:
parent
42cc4f14e0
commit
f7f3178ce2
3 changed files with 12 additions and 12 deletions
|
@ -49,6 +49,7 @@
|
|||
static int launch_as(struct plnstr *pp);
|
||||
static int launch_missile(struct plnstr *pp, int sublaunch);
|
||||
static int launch_sat(struct plnstr *pp, int sublaunch);
|
||||
static int msl_equip(struct plnstr *, char);
|
||||
|
||||
/*
|
||||
* laun <PLANES>
|
||||
|
@ -374,3 +375,14 @@ launch_sat(struct plnstr *pp, int sublaunch)
|
|||
plane_mob_max - pp->pln_mobil);
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
static int
|
||||
msl_equip(struct plnstr *pp, char mission)
|
||||
{
|
||||
struct plist pl;
|
||||
|
||||
memset(&pl, 0, sizeof(struct plist));
|
||||
pl.pcp = plchr + pp->pln_type;
|
||||
pl.plane = *pp;
|
||||
return pln_equip(&pl, NULL, mission);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue