Move msl_equip() to callers, internal linkage

This commit is contained in:
Markus Armbruster 2009-10-05 07:27:43 -04:00
parent 42cc4f14e0
commit f7f3178ce2
3 changed files with 12 additions and 12 deletions

View file

@ -493,7 +493,6 @@ extern int move_ground(struct sctstr *, struct sctstr *,
extern int fly_map(coord, coord); extern int fly_map(coord, coord);
/* mslsub.c */ /* mslsub.c */
extern int msl_intercept(coord, coord, natid, int, int, int, int); 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 *, extern int msl_hit(struct plnstr *, int, int, int, int, char *,
coord, coord, int); coord, coord, int);
extern void msl_sel(struct emp_qelem *, coord, coord, natid, int, extern void msl_sel(struct emp_qelem *, coord, coord, natid, int,

View file

@ -49,6 +49,7 @@
static int launch_as(struct plnstr *pp); static int launch_as(struct plnstr *pp);
static int launch_missile(struct plnstr *pp, int sublaunch); static int launch_missile(struct plnstr *pp, int sublaunch);
static int launch_sat(struct plnstr *pp, int sublaunch); static int launch_sat(struct plnstr *pp, int sublaunch);
static int msl_equip(struct plnstr *, char);
/* /*
* laun <PLANES> * laun <PLANES>
@ -374,3 +375,14 @@ launch_sat(struct plnstr *pp, int sublaunch)
plane_mob_max - pp->pln_mobil); plane_mob_max - pp->pln_mobil);
return RET_OK; 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);
}

View file

@ -53,17 +53,6 @@
#include "ship.h" #include "ship.h"
#include "xy.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 int
msl_hit(struct plnstr *pp, int hardtarget, int type, int news_item, msl_hit(struct plnstr *pp, int hardtarget, int type, int news_item,
int snews_item, char *what, coord x, coord y, int victim) int snews_item, char *what, coord x, coord y, int victim)