(lnd_mobtype): New.
(lnd_path): Use it. (lnd_mobcost): Use it, remove last parameter. Callers changed. This fixes mobility use of trains when retreating, both for retreat orders and for failed morale checks. (retreat_land1): Fix test for impassable terrain. Before, trains could retreat off rail. (lnd_take_casualty): Test for impassable terrain. Before, trains could retreat off rail.
This commit is contained in:
parent
2e693275f1
commit
4e7c993a62
4 changed files with 31 additions and 26 deletions
|
@ -201,7 +201,8 @@ extern int lnd_interdict(struct emp_qelem *, coord, coord, natid);
|
|||
extern void lnd_sel(struct nstr_item *, struct emp_qelem *);
|
||||
extern int lnd_check_mines(struct emp_qelem *);
|
||||
extern double lnd_pathcost(struct lndstr *, double);
|
||||
extern double lnd_mobcost(struct lndstr *, struct sctstr *, int);
|
||||
extern int lnd_mobtype(struct lndstr *);
|
||||
extern double lnd_mobcost(struct lndstr *, struct sctstr *);
|
||||
extern char *lnd_path(int, struct lndstr *, char *);
|
||||
|
||||
extern int attack_val(int, struct lndstr *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue