(bitinit2): Move from common/maps.c to getbit.c, external linkage.

(bitmap0, bitmap1, bitmap2, bitmap3, bitmap4, bitmaps): Static
linkage.
This commit is contained in:
Markus Armbruster 2004-02-19 19:59:45 +00:00
parent c8bb4d9b87
commit c28f377fe9
3 changed files with 26 additions and 25 deletions

View file

@ -50,7 +50,6 @@
#include "subs.h"
#include "optlist.h"
static void bitinit2(struct nstr_sect *, u_char *, int);
static int bmnxtsct(register struct nstr_sect *);
int
@ -328,24 +327,6 @@ bmnxtsct(register struct nstr_sect *np)
/*NOTREACHED*/
}
static void
bitinit2(struct nstr_sect *np, u_char *bitmap, int country)
{
extern int *bitmaps[];
struct sctstr sect;
int eff;
while (nxtsct(np, &sect)) {
if (sect.sct_own != country)
continue;
eff = sect.sct_effic / 20;
if (eff > 4)
eff = 4;
emp_setbitmap(np->x, np->y, bitmap, bitmaps[eff]);
}
snxtsct_rewind(np);
}
int
unit_map(int unit_type, int i, struct nstr_sect *nsp, s_char *originp)
{