mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocre
This commit is contained in:
parent
a00371c8db
commit
c76b2be644
|
@ -2300,7 +2300,7 @@ static void UpdateTownGrowRate(Town *t)
|
|||
/* Increase player ratings if they're low */
|
||||
const Player *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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue