(svn r1581) Added a display for the total map population to the town display (Jango)

This commit is contained in:
celestar
2005-01-21 16:51:25 +00:00
parent 1b99cebbf3
commit 07a10a51a7
4 changed files with 20 additions and 4 deletions

View File

@@ -203,6 +203,17 @@ static void ChangePopulation(Town *t, int mod)
if (_town_sort_order & 2) _town_sort_dirty = true;
}
uint32 GetWorldPopulation()
{
uint32 pop;
Town *t;
pop = 0;
FOR_ALL_TOWNS(t) {
pop += t->population;
}
return pop;
}
static void MakeSingleHouseBigger(uint tile)
{
byte b;