/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
struct plist *interceptor;
struct emp_qelem *att;
struct emp_qelem *in;
- int nplanes;
int more_att;
int more_int;
struct emp_qelem *att_next;
att_next = att->q_forw;
attacker = (struct plist *)att;
interceptor = (struct plist *)in;
- nplanes = attacker->plane.pln_effic;
- if (nplanes > interceptor->plane.pln_effic)
- nplanes = interceptor->plane.pln_effic;
ac_dog(attacker, interceptor);
in = in_next;
att = att_next;
def = pln_def(&dp->plane) * dp->plane.pln_effic / 100;
def = MAX(def, dp->pcp->pl_def / 2);
- if ((ap->pcp->pl_flags & P_F) && ap->bombs + ap->misc != 0)
+ if ((ap->pcp->pl_flags & P_F) && ap->load != 0)
att -= 2;
- if ((dp->pcp->pl_flags & P_F) && dp->bombs + ap->misc != 0)
+ if ((dp->pcp->pl_flags & P_F) && dp->load != 0)
def -= 2;
att += ap->pcp->pl_stealth / 25.0;
def += dp->pcp->pl_stealth / 25.0;
struct emp_qelem *next;
char msg[255];
- plp = (struct plist *)list->q_forw;
-
for (qp = list->q_forw; qp != list; qp = next) {
next = qp->q_forw;
plp = (struct plist *)qp;
flak = guns - def;
if ((pl_flags & P_T) == 0)
flak--;
- if (pl_flags & P_X)
- flak -= 2;
- if (pl_flags & P_H)
- flak -= 1;
if (flak > 8)
mult = flaktable[FLAK_MAX];
continue;
/* got one! */
ip = malloc(sizeof(*ip));
- ip->bombs = 0;
- ip->misc = 0;
+ ip->load = 0;
ip->pcp = &plchr[(int)plane.pln_type];
ip->plane = plane;
emp_insque(&ip->queue, &list[plane.pln_own]);