# HG changeset patch # User smatz # Date 1209510715 0 # Node ID af94524402ae0aa6184500da50e9c998abef7ef2 # Parent dd0121143eba87b5826c7f7ae09026d05157af5c (svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocre diff -r dd0121143eba -r af94524402ae src/town_cmd.cpp --- a/src/town_cmd.cpp Tue Apr 29 21:31:29 2008 +0000 +++ b/src/town_cmd.cpp Tue Apr 29 23:11:55 2008 +0000 @@ -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); } }