src/town_cmd.cpp
changeset 9659 187142ff9b6c
parent 9658 f5c4d3c04b5d
child 9714 5d785e184f2d
equal deleted inserted replaced
9658:f5c4d3c04b5d 9659:187142ff9b6c
  2304 static void UpdateTownGrowRate(Town *t)
  2304 static void UpdateTownGrowRate(Town *t)
  2305 {
  2305 {
  2306 	/* Increase player ratings if they're low */
  2306 	/* Increase player ratings if they're low */
  2307 	const Player *p;
  2307 	const Player *p;
  2308 	FOR_ALL_PLAYERS(p) {
  2308 	FOR_ALL_PLAYERS(p) {
  2309 		if (p->is_active && t->ratings[p->index] < RATING_GROWTH_MAXIMUM) {
  2309 		if (t->ratings[p->index] < RATING_GROWTH_MAXIMUM) {
  2310 			t->ratings[p->index] = min((int)RATING_GROWTH_MAXIMUM, t->ratings[p->index] + RATING_GROWTH_UP_STEP);
  2310 			t->ratings[p->index] = min((int)RATING_GROWTH_MAXIMUM, t->ratings[p->index] + RATING_GROWTH_UP_STEP);
  2311 		}
  2311 		}
  2312 	}
  2312 	}
  2313 
  2313 
  2314 	int n = 0;
  2314 	int n = 0;