(P_OK, P_FIRED, P_DEL): Unused, remove.
struct plist {
struct emp_qelem queue; /* list of planes */
- int state; /* state of plane */
int bombs; /* bombs carried for bombing mission */
int misc; /* amount of random item being transported */
struct plchrstr *pcp; /* pointer to desc of plane */
struct plnstr plane; /* struct plane */
};
-#define P_OK 0
-#define P_FIRED 1
-#define P_DEL 2
-
#define getplane(n, p) \
ef_read(EF_PLANE, n, p)
#define putplane(n, p) \
continue;
/* got one! */
ip = malloc(sizeof(*ip));
- ip->state = P_OK;
ip->bombs = 0;
ip->misc = 0;
ip->pcp = &plchr[(int)plane.pln_type];
continue;
/* got a valid interceptor */
irv = malloc(sizeof(*irv));
- irv->state = P_OK;
irv->bombs = 0;
irv->misc = 0;
irv->pcp = &plchr[(int)plane.pln_type];
plane.pln_mission = 0;
putplane(plane.pln_uid, &plane);
plp = malloc(sizeof(struct plist));
- plp->state = P_OK;
plp->misc = 0;
plp->bombs = 0;
plp->pcp = pcp;