(bitinit2): Move from common/maps.c to getbit.c, external linkage.
(bitmap0, bitmap1, bitmap2, bitmap3, bitmap4, bitmaps): Static linkage.
This commit is contained in:
parent
c8bb4d9b87
commit
c28f377fe9
3 changed files with 26 additions and 25 deletions
|
@ -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, §)) {
|
||||
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue