forked from mirror/OpenTTD
(svn r13731) -Codechange: make a pool of the array of players.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user