src/town_cmd.cpp
changeset 10387 b452b4949cca
parent 10379 192780749293
child 10429 1b99254f9607
equal deleted inserted replaced
10382:d1d4452acbfc 10387:b452b4949cca
  2298 static void UpdateTownGrowRate(Town *t)
  2298 static void UpdateTownGrowRate(Town *t)
  2299 {
  2299 {
  2300 	/* Increase player ratings if they're low */
  2300 	/* Increase player ratings if they're low */
  2301 	const Player *p;
  2301 	const Player *p;
  2302 	FOR_ALL_PLAYERS(p) {
  2302 	FOR_ALL_PLAYERS(p) {
  2303 		if (p->is_active) {
  2303 		if (p->is_active && t->ratings[p->index] < RATING_GROWTH_MAXIMUM) {
  2304 			t->ratings[p->index] = min((int)RATING_GROWTH_MAXIMUM, t->ratings[p->index] + RATING_GROWTH_UP_STEP);
  2304 			t->ratings[p->index] = min((int)RATING_GROWTH_MAXIMUM, t->ratings[p->index] + RATING_GROWTH_UP_STEP);
  2305 		}
  2305 		}
  2306 	}
  2306 	}
  2307 
  2307 
  2308 	int n = 0;
  2308 	int n = 0;