count_unit(u) bestimmt, welche einheiten zum partei-limit gezaehlt werden. Das sollten alle sein, sind's aber vorlaeufig nicht.

ausserdem ein bischen code-cleanup.
This commit is contained in:
Enno Rehling 2006-07-29 14:07:45 +00:00
parent 7b76da7c39
commit 594e75e42f
1 changed files with 7 additions and 1 deletions

View File

@ -546,7 +546,6 @@ enum {
};
#define want(i) (1<<i)
#define Pow(i) (1<<i)
extern const char *options[MAXOPTIONS];
@ -1120,6 +1119,13 @@ extern int freadstr(FILE * F, char * str, size_t size);
extern int fwritestr(FILE * F, const char * str);
extern attrib_type at_guard;
#if 1 /* disable to count all units */
# define count_unit(u) playerrace(u->race)
#else
# define count_unit(u) 1
#endif
#ifdef __cplusplus
}
#endif