forked from github/server
"giving heros to another faction"
This commit is contained in:
parent
167651abab
commit
95824f5404
1 changed files with 2 additions and 3 deletions
|
@ -1408,14 +1408,13 @@ countheroes(const struct faction * f)
|
||||||
{
|
{
|
||||||
const unit * u = f->units;
|
const unit * u = f->units;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
int m = 0;
|
|
||||||
|
|
||||||
while (u) {
|
while (u) {
|
||||||
if (fval(u, UFL_HERO)) n+= u->number;
|
if (fval(u, UFL_HERO)) n+= u->number;
|
||||||
u = u->nextF;
|
u = u->nextF;
|
||||||
}
|
}
|
||||||
#ifndef NDEBUG
|
#ifdef DEBUG_MAXHEROES
|
||||||
m = maxheroes(f);
|
int m = maxheroes(f);
|
||||||
if (n>m) {
|
if (n>m) {
|
||||||
log_warning(("%s has %d of %d heroes\n", factionname(f), n, m));
|
log_warning(("%s has %d of %d heroes\n", factionname(f), n, m));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue