From c76b2be6447a68fac37d4cfd694eb8ecc3f8a047 Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 29 Apr 2008 23:11:55 +0000 Subject: (svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocre --- src/town_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index d78fec5da..bd297ac2d 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -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); } } -- cgit v1.2.3-70-g09d2