Simplify how plane cargo is tracked
Fold struct plist members bombs (used for bombing runs) and misc (used for everything else) into a single member load.
This commit is contained in:
parent
d3f5fee64b
commit
54b1c04686
7 changed files with 18 additions and 28 deletions
|
@ -144,7 +144,7 @@ paradrop(struct emp_qelem *list, coord x, coord y)
|
|||
att_combat_init(off, EF_PLANE);
|
||||
for (qp = list->q_forw; qp != list; qp = qp->q_forw) {
|
||||
plp = (struct plist *)qp;
|
||||
off->troops += plp->misc;
|
||||
off->troops += plp->load;
|
||||
}
|
||||
off->mil = off->troops;
|
||||
if (att_abort(A_PARA, off, def)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue