(unit_path): New, create by combining shp_path() and lnd_path().
(do_unit_move): Replace shp_path() and lnd_path() with unit_path(). (shp_path, lnd_path): Remove shp_path() and lnd_path(), not used any more.
This commit is contained in:
parent
d94d269769
commit
aee2bc78e2
7 changed files with 55 additions and 82 deletions
|
@ -191,7 +191,6 @@ extern int lnd_check_mines(struct emp_qelem *);
|
|||
extern double lnd_pathcost(struct lndstr *, double);
|
||||
extern int lnd_mobtype(struct lndstr *);
|
||||
extern double lnd_mobcost(struct lndstr *, struct sctstr *);
|
||||
extern char *lnd_path(int, struct lndstr *, char *);
|
||||
|
||||
extern double attack_val(int, struct lndstr *);
|
||||
extern double defense_val(struct lndstr *);
|
||||
|
|
|
@ -664,7 +664,6 @@ extern void show_news(int);
|
|||
extern void shp_sel(struct nstr_item *, struct emp_qelem *);
|
||||
extern void shp_nav(struct emp_qelem *, double *, double *, int *, natid);
|
||||
extern int shp_sweep(struct emp_qelem *, int, int, natid);
|
||||
extern char *shp_path(int, struct shpstr *, char *);
|
||||
extern int shp_check_nav(struct sctstr *, struct shpstr *);
|
||||
extern int sect_has_dock(struct sctstr *);
|
||||
extern int shp_hardtarget(struct shpstr *);
|
||||
|
|
|
@ -44,3 +44,4 @@ struct ulist {
|
|||
|
||||
extern void unit_list(struct emp_qelem *);
|
||||
extern void unit_put(struct emp_qelem *list, natid actor);
|
||||
extern char *unit_path(int, struct empobj *, char *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue