changeset 9071:b0ca4f309189 draft

(svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocre
author smatz <smatz@openttd.org>
date Tue, 29 Apr 2008 23:11:55 +0000
parents 11b5b3f4175d
children e197fbb0bbb8
files src/town_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -2300,7 +2300,7 @@
 	/* 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);
 		}
 	}