Get rid of the need to fix up lchr[].

Mil are not required for building units since 4.0.0.  l_mil was still
initialized to l_item[I_MILIT], and used instead of that in a couple
of places.  Fix those, and remove the initialization.
This commit is contained in:
Markus Armbruster 2008-02-04 21:38:38 +01:00
parent 91eefc3f3a
commit 3290e87576
4 changed files with 6 additions and 20 deletions

View file

@ -34,8 +34,6 @@
#include <config.h>
#include "land.h"
#include "misc.h"
#include "optlist.h"
#include "plane.h"
#include "product.h"
@ -45,7 +43,6 @@
static void init_mchr(void);
static void init_pchr(void);
static void init_plchr(void);
static void init_lchr(void);
void
global_init(void)
@ -53,7 +50,6 @@ global_init(void)
init_pchr();
init_mchr();
init_plchr();
init_lchr();
}
static void
@ -90,14 +86,3 @@ init_pchr(void)
}
}
}
static void
init_lchr()
{
int i;
for (i = 0; lchr[i].l_name; i++) {
/* Fix up the military values */
lchr[i].l_mil = lchr[i].l_item[I_MILIT];
}
}