town_cmd.c
changeset 1517 b77361b13ae4
parent 1500 228f77e88adf
child 1529 be4a2259d2ff
equal deleted inserted replaced
1516:997a23b8b16c 1517:b77361b13ae4
   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