Factor out common fortress fire code into fort_fire()
This takes care of a number of bugs / inconsistencies: * sb() fired support even when there were not enough mil. * Shell resupply bugs: multifire() and quiet_bigdef() resupplied shells before checking all other requirements and could thus get more shells than actually needed. Rename landgun() to fortgun() for consistency.
This commit is contained in:
parent
3812cde100
commit
e8595066d1
8 changed files with 50 additions and 81 deletions
|
@ -459,7 +459,7 @@ extern int lnd_postread(int, void *);
|
|||
extern int lnd_prewrite(int, void *);
|
||||
/* landgun.c */
|
||||
extern double seagun(int, int);
|
||||
extern double landgun(int, int);
|
||||
extern double fortgun(int, int);
|
||||
extern double landunitgun(int, int, int, int, int);
|
||||
extern double effrange(int, double);
|
||||
extern double torprange(struct shpstr *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue