(svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocre

This commit is contained in:
smatz 2008-04-29 23:11:55 +00:00
parent a00371c8db
commit c76b2be644
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}