Remove redundant load checks before pln_damage()
pln_damage() copes with any load just fine.
This commit is contained in:
parent
54b1c04686
commit
0e8bcce59c
1 changed files with 6 additions and 9 deletions
|
@ -344,7 +344,6 @@ eff_bomb(struct emp_qelem *list, struct sctstr *target)
|
|||
plp = (struct plist *)qp;
|
||||
if (changed_plane_aborts(plp))
|
||||
continue;
|
||||
if (plp->load || nuk_on_plane(&plp->plane) >= 0)
|
||||
dam += pln_damage(&plp->plane, target->sct_x, target->sct_y,
|
||||
'p', &nukedam, 1);
|
||||
}
|
||||
|
@ -422,7 +421,6 @@ comm_bomb(struct emp_qelem *list, struct sctstr *target)
|
|||
plp = (struct plist *)qp;
|
||||
if (changed_plane_aborts(plp))
|
||||
continue;
|
||||
if (plp->load || nuk_on_plane(&plp->plane) >= 0)
|
||||
dam += pln_damage(&plp->plane, target->sct_x, target->sct_y,
|
||||
'p', &nukedam, 1);
|
||||
}
|
||||
|
@ -796,7 +794,6 @@ strat_bomb(struct emp_qelem *list, struct sctstr *target)
|
|||
|
||||
for (qp = list->q_forw; qp != list; qp = qp->q_forw) {
|
||||
plp = (struct plist *)qp;
|
||||
if (plp->load || nuk_on_plane(&plp->plane) >= 0)
|
||||
dam += pln_damage(&plp->plane, target->sct_x, target->sct_y,
|
||||
's', &nukedam, 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue