mirror of https://github.com/OpenTTD/OpenTTD
(svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocre
parent
a00371c8db
commit
c76b2be644
|
@ -2300,7 +2300,7 @@ static void UpdateTownGrowRate(Town *t)
|
||||||
/* Increase player ratings if they're low */
|
/* Increase player ratings if they're low */
|
||||||
const Player *p;
|
const Player *p;
|
||||||
FOR_ALL_PLAYERS(p) {
|
FOR_ALL_PLAYERS(p) {
|
||||||
if (p->is_active) {
|
if (p->is_active && t->ratings[p->index] < RATING_GROWTH_MAXIMUM) {
|
||||||
t->ratings[p->index] = min((int)RATING_GROWTH_MAXIMUM, t->ratings[p->index] + RATING_GROWTH_UP_STEP);
|
t->ratings[p->index] = min((int)RATING_GROWTH_MAXIMUM, t->ratings[p->index] + RATING_GROWTH_UP_STEP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue