forked from github/server
Falsche Heldenzahl fuer kleien Parteien
This commit is contained in:
parent
c2f3c6ce80
commit
a436127625
|
@ -1131,7 +1131,8 @@ unitlist_insert(struct unit_list **ul, struct unit *u)
|
||||||
int
|
int
|
||||||
maxheroes(const struct faction * f)
|
maxheroes(const struct faction * f)
|
||||||
{
|
{
|
||||||
return (int)(log10(count_all(f) / 50.0) * 20);
|
int nmax = (int)(log10(count_all(f) / 50.0) * 20);
|
||||||
|
return (nmax<0)?0:nmax;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue