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