config: Drop configuration table size macros
Macros LND_TYPE_MAX, N_MAXNUKE, PLN_TYPE_MAX, P_MAX, SCT_TYPE_MAX, SHP_TYPE_MAX are only used to size a single array each. Eliminate. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
a374e6435d
commit
e379edc648
12 changed files with 17 additions and 25 deletions
|
@ -30,7 +30,7 @@
|
|||
* Thomas Ruschak, 1992
|
||||
* Ken Stevens, 1995
|
||||
* Steve McClure, 1998
|
||||
* Markus Armbruster, 2004-2016
|
||||
* Markus Armbruster, 2004-2020
|
||||
*/
|
||||
|
||||
#ifndef LAND_H
|
||||
|
@ -41,7 +41,6 @@
|
|||
#include "retreat.h"
|
||||
#include "types.h"
|
||||
|
||||
#define LND_TYPE_MAX 30
|
||||
#define LAND_MINEFF 10
|
||||
#define LAND_MINFIREEFF 40 /* arty must be this effic to fire */
|
||||
|
||||
|
@ -125,7 +124,7 @@ struct lchrstr {
|
|||
#define putland(n, p) ef_write(EF_LAND, (n), (p))
|
||||
#define getlandp(n) ((struct lndstr *)ef_ptr(EF_LAND, (n)))
|
||||
|
||||
extern struct lchrstr lchr[LND_TYPE_MAX + 2];
|
||||
extern struct lchrstr lchr[32];
|
||||
|
||||
enum {
|
||||
LND_AIROPS_EFF = 50 /* min. efficiency for air ops */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue