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
|
@ -493,7 +493,6 @@ extern int move_ground(struct sctstr *, struct sctstr *,
|
|||
extern int fly_map(coord, coord);
|
||||
/* mslsub.c */
|
||||
extern int msl_intercept(coord, coord, natid, int, int, int, int);
|
||||
extern int msl_equip(struct plnstr *, char);
|
||||
extern int msl_hit(struct plnstr *, int, int, int, int, char *,
|
||||
coord, coord, int);
|
||||
extern void msl_sel(struct emp_qelem *, coord, coord, natid, int,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -53,17 +53,6 @@
|
|||
#include "ship.h"
|
||||
#include "xy.h"
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
int
|
||||
msl_hit(struct plnstr *pp, int hardtarget, int type, int news_item,
|
||||
int snews_item, char *what, coord x, coord y, int victim)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue