Falsche Heldenzahl fuer kleien Parteien
This commit is contained in:
Enno Rehling 2004-12-03 11:10:33 +00:00
parent c2f3c6ce80
commit a436127625
1 changed files with 2 additions and 1 deletions

View File

@ -1131,7 +1131,8 @@ unitlist_insert(struct unit_list **ul, struct unit *u)
int
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