(plist): Member state is used write-only, remove.
(P_OK, P_FIRED, P_DEL): Unused, remove.
This commit is contained in:
parent
a5b7465024
commit
1d88b8783a
4 changed files with 0 additions and 8 deletions
|
@ -129,17 +129,12 @@ struct plchrstr {
|
||||||
|
|
||||||
struct plist {
|
struct plist {
|
||||||
struct emp_qelem queue; /* list of planes */
|
struct emp_qelem queue; /* list of planes */
|
||||||
int state; /* state of plane */
|
|
||||||
int bombs; /* bombs carried for bombing mission */
|
int bombs; /* bombs carried for bombing mission */
|
||||||
int misc; /* amount of random item being transported */
|
int misc; /* amount of random item being transported */
|
||||||
struct plchrstr *pcp; /* pointer to desc of plane */
|
struct plchrstr *pcp; /* pointer to desc of plane */
|
||||||
struct plnstr plane; /* struct plane */
|
struct plnstr plane; /* struct plane */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define P_OK 0
|
|
||||||
#define P_FIRED 1
|
|
||||||
#define P_DEL 2
|
|
||||||
|
|
||||||
#define getplane(n, p) \
|
#define getplane(n, p) \
|
||||||
ef_read(EF_PLANE, n, p)
|
ef_read(EF_PLANE, n, p)
|
||||||
#define putplane(n, p) \
|
#define putplane(n, p) \
|
||||||
|
|
|
@ -1077,7 +1077,6 @@ getilist(struct emp_qelem *list, natid own, struct emp_qelem *a,
|
||||||
continue;
|
continue;
|
||||||
/* got one! */
|
/* got one! */
|
||||||
ip = malloc(sizeof(*ip));
|
ip = malloc(sizeof(*ip));
|
||||||
ip->state = P_OK;
|
|
||||||
ip->bombs = 0;
|
ip->bombs = 0;
|
||||||
ip->misc = 0;
|
ip->misc = 0;
|
||||||
ip->pcp = &plchr[(int)plane.pln_type];
|
ip->pcp = &plchr[(int)plane.pln_type];
|
||||||
|
|
|
@ -199,7 +199,6 @@ msl_sel(struct emp_qelem *list, coord x, coord y, natid victim,
|
||||||
continue;
|
continue;
|
||||||
/* got a valid interceptor */
|
/* got a valid interceptor */
|
||||||
irv = malloc(sizeof(*irv));
|
irv = malloc(sizeof(*irv));
|
||||||
irv->state = P_OK;
|
|
||||||
irv->bombs = 0;
|
irv->bombs = 0;
|
||||||
irv->misc = 0;
|
irv->misc = 0;
|
||||||
irv->pcp = &plchr[(int)plane.pln_type];
|
irv->pcp = &plchr[(int)plane.pln_type];
|
||||||
|
|
|
@ -504,7 +504,6 @@ pln_sel(struct nstr_item *ni, struct emp_qelem *list, struct sctstr *ap,
|
||||||
plane.pln_mission = 0;
|
plane.pln_mission = 0;
|
||||||
putplane(plane.pln_uid, &plane);
|
putplane(plane.pln_uid, &plane);
|
||||||
plp = malloc(sizeof(struct plist));
|
plp = malloc(sizeof(struct plist));
|
||||||
plp->state = P_OK;
|
|
||||||
plp->misc = 0;
|
plp->misc = 0;
|
||||||
plp->bombs = 0;
|
plp->bombs = 0;
|
||||||
plp->pcp = pcp;
|
plp->pcp = pcp;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue