equal
deleted
inserted
replaced
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; |