update: Separate MOB_ACCESS from normal mobility update
The update uses mob_sect(), mob_ship(), mob_plane() and mob_land() for two related, but different jobs: to give the previous turn's remaining MOB_ACCESS mobility, and to give this update's new mobility. The two were probably conflated in an attempt to share code, but it actually just complicates things. Collect the MOB_ACCESS code in new function mob_access_all(), and the normal mobility update code in new function mob_inc_all(). Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
d861902783
commit
25d48124d0
3 changed files with 66 additions and 84 deletions
|
@ -103,14 +103,12 @@ extern void prod_land(int, int, struct bp *, int);
|
|||
/* material.c */
|
||||
extern int get_materials(struct sctstr *, short[], int);
|
||||
/* mobility.c */
|
||||
extern void mob_sect(void);
|
||||
extern void mob_ship(void);
|
||||
extern void mob_land(void);
|
||||
extern void mob_plane(void);
|
||||
extern void mob_inc_all(int);
|
||||
extern void sct_do_upd_mob(struct sctstr *sp);
|
||||
extern void shp_do_upd_mob(struct shpstr *sp);
|
||||
extern void lnd_do_upd_mob(struct lndstr *lp);
|
||||
extern void pln_do_upd_mob(struct plnstr *pp);
|
||||
extern void mob_access_all(void);
|
||||
/* move_sat.c */
|
||||
extern void move_sat(struct plnstr *);
|
||||
/* nat.c */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue