diff options
author | smatz <smatz@openttd.org> | 2008-04-29 23:11:55 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-29 23:11:55 +0000 |
commit | 36bb91cc6dd91c0906cc28bd7b5fa9f252fa7074 (patch) | |
tree | a348f7b1d872ec7a31e35a658bee9b91df928b0a /src | |
parent | 45034bc522c8e541b5ec8b38868d13cc6290e3ac (diff) | |
download | openttd-36bb91cc6dd91c0906cc28bd7b5fa9f252fa7074.tar.xz |
(svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocre
Diffstat (limited to 'src')
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |