(lnd_pathcost): New, factored out of lnd_mobcost().
(att_reacting_units): Use it. Fixes overcharging of inefficient units. Broken when Empire3 changed land unit mobility use not to depend on efficiency, except for supply units. (lnd_sweep): Use it. No functional change. (speed_factor): New, factored out of lnd_pathcost() and shp_mobcost().
This commit is contained in:
parent
5e66e5bdee
commit
55ff194f7f
6 changed files with 27 additions and 24 deletions
|
@ -73,7 +73,8 @@ extern int diridx(char);
|
|||
extern void direrr(char *, char *, char *);
|
||||
extern void pathrange(coord, coord, char *, int, struct range *);
|
||||
|
||||
extern double sector_mcost(struct sctstr *sp, int do_bonus);
|
||||
extern double sector_mcost(struct sctstr *, int);
|
||||
extern double speed_factor(double, int);
|
||||
|
||||
#define MAX_PATH_LEN 1024
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue