Factor common plane damage code into ac_damage_plane()

Out of ac_planedamage() and pinflak_planedamage().
This commit is contained in:
Markus Armbruster 2010-06-17 07:47:45 +02:00
parent 1a4fc50d57
commit aa5bb9790c
3 changed files with 23 additions and 38 deletions

View file

@ -165,6 +165,7 @@ extern int pln_next_on_unit(int);
extern int ac_flak_dam(int, int, int);
extern void ac_encounter(struct emp_qelem *, struct emp_qelem *, coord,
coord, char *, int);
extern int ac_damage_plane(struct plnstr *, natid, int, int, char *);
/* src/lib/subs/aswplnsubs.c */
extern int on_shiplist(int, struct shiplist *);