equal
deleted
inserted
replaced
440 /* Make sure each town's tickhandler invocation frequency is about the |
440 /* Make sure each town's tickhandler invocation frequency is about the |
441 * same - TOWN_GROWTH_FREQUENCY - independent on the number of towns. */ |
441 * same - TOWN_GROWTH_FREQUENCY - independent on the number of towns. */ |
442 for (counter += GetTownPoolSize(); |
442 for (counter += GetTownPoolSize(); |
443 counter >= TOWN_GROWTH_FREQUENCY; |
443 counter >= TOWN_GROWTH_FREQUENCY; |
444 counter -= TOWN_GROWTH_FREQUENCY) { |
444 counter -= TOWN_GROWTH_FREQUENCY) { |
445 int i = _cur_town_ctr; |
445 uint32 i = _cur_town_ctr; |
446 Town *t; |
446 Town *t; |
447 |
447 |
448 if (++_cur_town_ctr >= GetTownPoolSize()) |
448 if (++_cur_town_ctr >= GetTownPoolSize()) |
449 _cur_town_ctr = 0; |
449 _cur_town_ctr = 0; |
450 |
450 |