(svn r13731) -Codechange: make a pool of the array of players.

This commit is contained in:
rubidium
2008-07-18 16:40:29 +00:00
parent 891bec7e23
commit 3a799389eb
38 changed files with 173 additions and 242 deletions

View File

@@ -2306,7 +2306,7 @@ static void UpdateTownGrowRate(Town *t)
/* Increase player ratings if they're low */
const Player *p;
FOR_ALL_PLAYERS(p) {
if (p->is_active && t->ratings[p->index] < RATING_GROWTH_MAXIMUM) {
if (t->ratings[p->index] < RATING_GROWTH_MAXIMUM) {
t->ratings[p->index] = min((int)RATING_GROWTH_MAXIMUM, t->ratings[p->index] + RATING_GROWTH_UP_STEP);
}
}