(do_unit_move): New, create from common code in navi() and march().
(navi, move): Use do_unit_move(), remove unneeded code. (switch_leader, pr_leader_change, get_leader): Make static as only called from marc.c.
This commit is contained in:
parent
d57a57155c
commit
0fda2a608a
3 changed files with 136 additions and 203 deletions
|
@ -62,9 +62,8 @@ extern int display_mark(i_type, int);
|
|||
extern int want_to_abandon(struct sctstr *, i_type, int, struct lndstr *);
|
||||
extern int would_abandon(struct sctstr *, i_type, int, struct lndstr *);
|
||||
extern int nav_map(int, int, int);
|
||||
extern void switch_leader(struct emp_qelem *list, int uid);
|
||||
extern struct empobj *get_leader(struct emp_qelem *list);
|
||||
extern void pr_leader_change(struct empobj *leader);
|
||||
extern int do_unit_move(struct emp_qelem *land_list, int *together,
|
||||
double *minmob, double *maxmob);
|
||||
extern int count_pop(int);
|
||||
extern int scuttle_tradeship(struct shpstr *, int);
|
||||
extern void scuttle_ship(struct shpstr *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue